mirror of
				https://github.com/libssh2/libssh2.git
				synced 2025-11-03 22:13:11 +03:00 
			
		
		
		
	libssh2_session_disconnect_ex() should be returning PACKET_EAGAIN instead
of LIBSSH2_ERROR_EAGAIN, so it matches the other functions return values.
This commit is contained in:
		@@ -812,7 +812,7 @@ LIBSSH2_API int libssh2_session_disconnect_ex(LIBSSH2_SESSION *session, int reas
 | 
			
		||||
 | 
			
		||||
    rc = libssh2_packet_write(session, session->disconnect_data, session->disconnect_data_len);
 | 
			
		||||
    if (rc == PACKET_EAGAIN) {
 | 
			
		||||
        return LIBSSH2_ERROR_EAGAIN;
 | 
			
		||||
        return PACKET_EAGAIN;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    LIBSSH2_FREE(session, session->disconnect_data);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user