Commit bb338797 authored by Philip Withnall's avatar Philip Withnall

socket: Fix return values of socket_send_messages in socks5.c

The return value is the number of messages sent, or -1 on error — not a
boolean.
parent d9afbf28
......@@ -421,7 +421,7 @@ socket_send_messages (NiceSocket *sock, const NiceAddress *to,
if (priv->state == SOCKS_STATE_CONNECTED) {
/* Fast path: pass through to the base socket once connected. */
if (priv->base_socket == NULL)
return FALSE;
return -1;
return nice_socket_send_messages (priv->base_socket, to, messages,
n_messages);
......@@ -430,7 +430,6 @@ socket_send_messages (NiceSocket *sock, const NiceAddress *to,
} else {
return 0;
}
return n_messages;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment