diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index 304c9fa69f..eaaa922a71 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -3167,10 +3167,11 @@ static CURLcode ssh_connect(struct Curl_easy *data, bool *done) sshc = &conn->proto.sshc; + if(conn->user) + infof(data, "User: '%s'", conn->user); + else + infof(data, "User: NULL"); #ifdef CURL_LIBSSH2_DEBUG - if(conn->user) { - infof(data, "User: %s", conn->user); - } if(conn->passwd) { infof(data, "Password: %s", conn->passwd); }