publickey_list_free: no return value from a void function

Fixed a compiler warning I introduced previously when checking input
arguments more. I also added a check for the other pointer to avoid NULL
pointer dereferences.
This commit is contained in:
Daniel Stenberg 2010-06-30 15:43:31 +02:00
parent 1d83b520b4
commit 46be03f92b

View File

@ -999,8 +999,8 @@ libssh2_publickey_list_free(LIBSSH2_PUBLICKEY * pkey,
LIBSSH2_SESSION *session;
libssh2_publickey_list *p = pkey_list;
if(!pkey)
return LIBSSH2_ERROR_BAD_USE;
if(!pkey || !p)
return;
session = pkey->channel->session;