summaryrefslogtreecommitdiff
path: root/socket/socks5.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2013-12-17 09:21:24 +0000
committerOlivier CrĂȘte <olivier.crete@collabora.com>2013-12-18 17:49:30 -0500
commit332c9c5b329426f2d255e9eaf856aa79fe813a77 (patch)
tree8214381d700beca05777a67d4e1eae55db000cba /socket/socks5.c
parent4b11c683760b545a8bc5171e348cc13d031d60cb (diff)
downloadlibnice-332c9c5b329426f2d255e9eaf856aa79fe813a77.tar.gz
Fix variable shadowing
Diffstat (limited to 'socket/socks5.c')
-rw-r--r--socket/socks5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/socket/socks5.c b/socket/socks5.c
index 9e9b258..d6083a2 100644
--- a/socket/socks5.c
+++ b/socket/socks5.c
@@ -160,7 +160,7 @@ socket_close (NiceSocket *sock)
static gint
-socket_recv (NiceSocket *sock, NiceAddress *from, guint len, gchar *buf)
+socket_recv (NiceSocket *sock, NiceAddress *from, guint buf_len, gchar *buf)
{
Socks5Priv *priv = sock->priv;
@@ -170,7 +170,7 @@ socket_recv (NiceSocket *sock, NiceAddress *from, guint len, gchar *buf)
switch (priv->state) {
case SOCKS_STATE_CONNECTED:
if (priv->base_socket)
- return nice_socket_recv (priv->base_socket, NULL, len, buf);
+ return nice_socket_recv (priv->base_socket, NULL, buf_len, buf);
break;
case SOCKS_STATE_INIT:
{