1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

server: Fix compilation without WITH_SERVER

This commit is contained in:
Aris Adamantiadis
2013-07-14 09:30:59 +02:00
parent bf5e5eebd7
commit ad92740dc3
7 changed files with 49 additions and 14 deletions

View File

@@ -843,12 +843,16 @@ SSH_PACKET_CALLBACK(channel_rcv_request) {
leave_function();
return SSH_PACKET_USED;
}
#ifdef WITH_SERVER
/* If we are here, that means we have a request that is not in the understood
* client requests. That means we need to create a ssh message to be passed
* to the user code handling ssh messages
*/
ssh_message_handle_channel_request(session,channel,packet,request,status);
#else
SSH_LOG(session,SSH_LOG_WARNING, "Unhandled channel request %s", request);
#endif
SAFE_FREE(request);
leave_function();