SOCKET fd = sock->sock;
SilcBuffer src = sock->outbuf;
+ if (SILC_IS_DISABLED(sock))
+ return -1;
+
SILC_LOG_DEBUG(("Writing data to socket %d", fd));
if (src->len > 0) {
SOCKET fd = sock->sock;
int argp;
+ if (SILC_IS_DISABLED(sock))
+ return -1;
+
SILC_LOG_DEBUG(("Reading data from socket %d", fd));
/* Check whether there is data available, without calling recv(). */