s3: Slightly simplify the logic in smbd_server_connection_handler
authorVolker Lendecke <vl@samba.org>
Thu, 12 Aug 2010 10:48:30 +0000 (12:48 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 12 Aug 2010 11:31:51 +0000 (13:31 +0200)
source3/smbd/process.c

index 2e319135c7bfe9a5aa0eca5850fb4dcc9417b8c3..40319a59af0afc977ddb1ad478d5a1c42f4cc50d 100644 (file)
@@ -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;
        }
 }