From 3fc4caf42f7ce4bbca247d5613ade36e8bf1e000 Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Wed, 18 Jul 2007 19:31:15 +0000 Subject: [PATCH] fixed call to libssh2_userauth_list() since NULL isnt supported for the username. --- example/simple/ssh2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/simple/ssh2.c b/example/simple/ssh2.c index 721116e6..054c83ad 100644 --- a/example/simple/ssh2.c +++ b/example/simple/ssh2.c @@ -1,5 +1,5 @@ /* - * $Id: ssh2.c,v 1.7 2007/07/18 11:46:25 gknauf Exp $ + * $Id: ssh2.c,v 1.8 2007/07/18 19:31:15 gknauf Exp $ * * Sample showing how to do SSH2 connect. * @@ -103,7 +103,7 @@ int main(int argc, char *argv[]) #ifdef TEST_AUTH_LIST /* check what authentication methods are available */ - userauthlist = libssh2_userauth_list(session, NULL, 0); + userauthlist = libssh2_userauth_list(session, username, sizeof(username)); printf("Authentication methods: %s\n", userauthlist); #endif