diff options
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/cldap/cldap.c | 3 | ||||
-rw-r--r-- | source4/libcli/dgram/dgramsocket.c | 3 | ||||
-rw-r--r-- | source4/libcli/nbt/nbtsocket.c | 3 | ||||
-rw-r--r-- | source4/libcli/wins/winsrepl.c | 1 |
4 files changed, 6 insertions, 4 deletions
diff --git a/source4/libcli/cldap/cldap.c b/source4/libcli/cldap/cldap.c index a96906cf4c..41d5f1a06e 100644 --- a/source4/libcli/cldap/cldap.c +++ b/source4/libcli/cldap/cldap.c @@ -222,7 +222,8 @@ static void cldap_socket_handler(struct event_context *ev, struct fd_event *fde, struct cldap_socket *cldap = talloc_get_type(private, struct cldap_socket); if (flags & EVENT_FD_WRITE) { cldap_socket_send(cldap); - } else if (flags & EVENT_FD_READ) { + } + if (flags & EVENT_FD_READ) { cldap_socket_recv(cldap); } } diff --git a/source4/libcli/dgram/dgramsocket.c b/source4/libcli/dgram/dgramsocket.c index 88eed5c10b..aff9d2e182 100644 --- a/source4/libcli/dgram/dgramsocket.c +++ b/source4/libcli/dgram/dgramsocket.c @@ -146,7 +146,8 @@ static void dgm_socket_handler(struct event_context *ev, struct fd_event *fde, struct nbt_dgram_socket); if (flags & EVENT_FD_WRITE) { dgm_socket_send(dgmsock); - } else if (flags & EVENT_FD_READ) { + } + if (flags & EVENT_FD_READ) { dgm_socket_recv(dgmsock); } } diff --git a/source4/libcli/nbt/nbtsocket.c b/source4/libcli/nbt/nbtsocket.c index f600afb79f..0401e68af8 100644 --- a/source4/libcli/nbt/nbtsocket.c +++ b/source4/libcli/nbt/nbtsocket.c @@ -292,7 +292,8 @@ static void nbt_name_socket_handler(struct event_context *ev, struct fd_event *f struct nbt_name_socket); if (flags & EVENT_FD_WRITE) { nbt_name_socket_send(nbtsock); - } else if (flags & EVENT_FD_READ) { + } + if (flags & EVENT_FD_READ) { nbt_name_socket_recv(nbtsock); } } diff --git a/source4/libcli/wins/winsrepl.c b/source4/libcli/wins/winsrepl.c index 65b713202f..732b597c53 100644 --- a/source4/libcli/wins/winsrepl.c +++ b/source4/libcli/wins/winsrepl.c @@ -200,7 +200,6 @@ static void wrepl_handler(struct event_context *ev, struct fd_event *fde, struct wrepl_socket); if (flags & EVENT_FD_WRITE) { wrepl_handler_send(wrepl_socket); - return; } if (flags & EVENT_FD_READ) { wrepl_handler_recv(wrepl_socket); |