mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-02 01:17:52 +03:00
socket: Add missing braces
Signed-off-by: Tilo Eckert <tilo.eckert@flam.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
f369d02932
commit
b227c12ad2
@@ -236,7 +236,7 @@ int ssh_socket_pollcallback(struct ssh_poll_handle_struct *p,
|
|||||||
(revents & POLLOUT) ? "POLLOUT ":"",
|
(revents & POLLOUT) ? "POLLOUT ":"",
|
||||||
(revents & POLLERR) ? "POLLERR":"",
|
(revents & POLLERR) ? "POLLERR":"",
|
||||||
ssh_buffer_get_len(s->out_buffer));
|
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 */
|
/* Check if we are in a connecting state */
|
||||||
if (s->state == SSH_SOCKET_CONNECTING) {
|
if (s->state == SSH_SOCKET_CONNECTING) {
|
||||||
s->state = SSH_SOCKET_ERROR;
|
s->state = SSH_SOCKET_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user