From: Daniel Stenberg Date: Mon, 12 Nov 2007 09:24:05 +0000 (+0000) Subject: oops, fixed build when CURL_LIBSSH2_DEBUG is defined X-Git-Tag: curl-7_18_0~288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c71a1bab77be5e687699fa2735a8673ee96d62d;p=thirdparty%2Fcurl.git oops, fixed build when CURL_LIBSSH2_DEBUG is defined --- diff --git a/lib/ssh.c b/lib/ssh.c index 23755be741..faa288e0e8 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -1876,11 +1876,11 @@ static CURLcode ssh_connect(struct connectdata *conn, bool *done) ssh = &conn->proto.sshc; #ifdef CURL_LIBSSH2_DEBUG - if(ssh->user) { - infof(data, "User: %s\n", ssh->user); + if(conn->user) { + infof(data, "User: %s\n", conn->user); } - if(ssh->passwd) { - infof(data, "Password: %s\n", ssh->passwd); + if(conn->passwd) { + infof(data, "Password: %s\n", conn->passwd); } #endif /* CURL_LIBSSH2_DEBUG */ sock = conn->sock[FIRSTSOCKET];