[Telepathy-commits] [telepathy-gabble/master] sha1_hex accepts a guint for the string length so don't pass -1
Marco Barisione
marco at barisione.org
Tue Jan 6 08:41:24 PST 2009
---
src/bytestream-socks5.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/bytestream-socks5.c b/src/bytestream-socks5.c
index 9028256..7fb741d 100644
--- a/src/bytestream-socks5.c
+++ b/src/bytestream-socks5.c
@@ -495,7 +495,7 @@ socks5_handle_received_data (GabbleBytestreamSocks5 *self,
to = lm_message_node_get_attribute (
priv->msg_for_acknowledge_connection->node, "to"),
unhashed_domain = g_strconcat (priv->stream_id, from, to, NULL);
- domain = sha1_hex (unhashed_domain, -1);
+ domain = sha1_hex (unhashed_domain, strlen (unhashed_domain));
msg[0] = SOCKS5_VERSION;
msg[1] = SOCKS5_CMD_CONNECT;
--
1.5.6.5
More information about the Telepathy-commits
mailing list