summaryrefslogtreecommitdiffstats
path: root/src/channels.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2013-07-14 09:30:59 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2013-07-14 09:30:59 +0200
commitad92740dc324d16864f298924474882e0c3ec259 (patch)
tree4f9eb6582b1952d90838430412ce6baade5b5b88 /src/channels.c
parentbf5e5eebd7fd6cf83f211a4f0e427b9f1d8462c6 (diff)
downloadlibssh-ad92740dc324d16864f298924474882e0c3ec259.tar.gz
libssh-ad92740dc324d16864f298924474882e0c3ec259.tar.xz
libssh-ad92740dc324d16864f298924474882e0c3ec259.zip
server: Fix compilation without WITH_SERVER
Diffstat (limited to 'src/channels.c')
-rw-r--r--src/channels.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/channels.c b/src/channels.c
index f6f992b..687a8ee 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -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();