Commit 39a65a1d authored by Youness Alaoui's avatar Youness Alaoui Committed by Olivier Crête

Fix return value of send_messages in socks5

parent 2243ba07
......@@ -434,11 +434,11 @@ socket_send_messages (NiceSocket *sock, const NiceAddress *to,
return nice_socket_send_messages (priv->base_socket, to, messages,
} else if (priv->state == SOCKS_STATE_ERROR) {
return FALSE;
return -1;
} else {
add_to_be_sent (sock, to, messages, n_messages);
return TRUE;
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