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