summaryrefslogtreecommitdiff
path: root/socket/socks5.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-09-02 11:55:19 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-09-02 13:54:30 +0100
commitbb33879742c3572ab097ce82e24ece5122f547fc (patch)
tree98718c9ae58591eae80ec07419131f64555eea81 /socket/socks5.c
parentd9afbf284a36e1e9afd38620ec19d6c0a80293b5 (diff)
downloadlibnice-bb33879742c3572ab097ce82e24ece5122f547fc.tar.gz
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.
Diffstat (limited to 'socket/socks5.c')
-rw-r--r--socket/socks5.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/socket/socks5.c b/socket/socks5.c
index 65e46d6..f0e4560 100644
--- a/socket/socks5.c
+++ b/socket/socks5.c
@@ -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;
}