From dd52ac837e5153f95ac91265abb53c7081af3ee0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 5 Nov 2008 15:50:09 +0100 Subject: [PATCH] Fix libssh connect bug cause of uninitialized port variable. --- modules/csync_sftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/csync_sftp.c b/modules/csync_sftp.c index 388941a9c..854d94670 100644 --- a/modules/csync_sftp.c +++ b/modules/csync_sftp.c @@ -99,7 +99,7 @@ static int _sftp_connect(const char *uri) { char *user = NULL; char *passwd = NULL; char *host = NULL; - unsigned int port; + unsigned int port = 0; char *path = NULL; unsigned char hash[MD5_DIGEST_LEN]; int rc = -1;