mirror of
				https://github.com/libssh2/libssh2.git
				synced 2025-10-30 12:05:34 +03:00 
			
		
		
		
	LIBSSH2_DEBUG: macro uses incorrect function variable
The LIBSSH2_DEBUG macro, defined in libssh2_priv.h, incorrectly uses the function variable ssh_msg_disconnect when it should use ssh_msg_debug. This shows that the LIBSSH2_CALLBACK_DEBUG callback never has worked...
This commit is contained in:
		| @@ -172,7 +172,7 @@ typedef int libssh2_socket_t; | ||||
|  session->ssh_msg_ignore((session), (data), (datalen), &(session)->abstract) | ||||
| #define LIBSSH2_DEBUG(session, always_display, message, message_len, \ | ||||
|                       language, language_len)    \ | ||||
|     session->ssh_msg_disconnect((session), (always_display), (message), \ | ||||
|     session->ssh_msg_debug((session), (always_display), (message), \ | ||||
|                            (message_len), (language), (language_len), \ | ||||
|                            &(session)->abstract) | ||||
| #define LIBSSH2_DISCONNECT(session, reason, message, message_len, language, language_len)   \ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user