diff options
Diffstat (limited to 'source4/auth/gensec')
-rw-r--r-- | source4/auth/gensec/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/gensec/socket.c b/source4/auth/gensec/socket.c index 99b4108a39..c89e080232 100644 --- a/source4/auth/gensec/socket.c +++ b/source4/auth/gensec/socket.c @@ -111,7 +111,7 @@ static void gensec_socket_trigger_read(struct tevent_context *ev, /* It may well be that, having run the recv handler, we still * have even more data waiting for us! */ - if (gensec_socket->read_buffer.length && gensec_socket->recv_handler) { + if (gensec_socket->read_buffer.length > 0) { /* Schedule this funcion to run again */ tevent_add_timer(gensec_socket->ev, gensec_socket, timeval_zero(), gensec_socket_trigger_read, gensec_socket); |