diff options
author | Tilo Eckert <tilo.eckert@flam.de> | 2018-11-15 10:37:30 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-11-21 12:27:01 +0100 |
commit | 946210534e2cd0c4fd6a403c6aea2713817e13dd (patch) | |
tree | 984150695e999e289aede85fdc4b4623fd7eebbe | |
parent | fe0331cf40c6ded0e1f604efb9d697a9fe86ff7f (diff) | |
download | libssh-946210534e2cd0c4fd6a403c6aea2713817e13dd.tar.gz libssh-946210534e2cd0c4fd6a403c6aea2713817e13dd.tar.xz libssh-946210534e2cd0c4fd6a403c6aea2713817e13dd.zip |
socket: Add missing braces
Signed-off-by: Tilo Eckert <tilo.eckert@flam.de>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit b227c12ad2779900cc7caf6c4850b2290e599b3a)
-rw-r--r-- | src/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c index 0eb53d3b..9823d8e1 100644 --- a/src/socket.c +++ b/src/socket.c @@ -236,7 +236,7 @@ int ssh_socket_pollcallback(struct ssh_poll_handle_struct *p, (revents & POLLOUT) ? "POLLOUT ":"", (revents & POLLERR) ? "POLLERR":"", ssh_buffer_get_len(s->out_buffer)); - if (revents & POLLERR || revents & POLLHUP) { + if ((revents & POLLERR) || (revents & POLLHUP)) { /* Check if we are in a connecting state */ if (s->state == SSH_SOCKET_CONNECTING) { s->state = SSH_SOCKET_ERROR; |