mirror of
				https://github.com/libssh2/libssh2.git
				synced 2025-11-03 22:13:11 +03:00 
			
		
		
		
	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:
		@@ -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;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user