From c7a2e52ef171512e2c0f80a57dd3f61b4cf0dba1 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 12 Aug 2010 12:48:30 +0200 Subject: s3: Slightly simplify the logic in smbd_server_connection_handler --- source3/smbd/process.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 2e319135c7..40319a59af 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -2331,8 +2331,11 @@ static void smbd_server_connection_handler(struct event_context *ev, if (flags & EVENT_FD_WRITE) { smbd_server_connection_write_handler(conn); - } else if (flags & EVENT_FD_READ) { + return; + } + if (flags & EVENT_FD_READ) { smbd_server_connection_read_handler(conn, smbd_server_fd()); + return; } } -- cgit