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:25:50 +0100 |
commit | b227c12ad2779900cc7caf6c4850b2290e599b3a (patch) | |
tree | 92b4094c73b084195f1fba292069ea235686457d | |
parent | f369d0293268828685fb15eb58be4bc378d1f218 (diff) | |
download | libssh-b227c12ad2779900cc7caf6c4850b2290e599b3a.tar.gz libssh-b227c12ad2779900cc7caf6c4850b2290e599b3a.tar.xz libssh-b227c12ad2779900cc7caf6c4850b2290e599b3a.zip |
socket: Add missing braces
Signed-off-by: Tilo Eckert <tilo.eckert@flam.de>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-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; |