summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ssh/channels.c')
-rw-r--r--usr.bin/ssh/channels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/channels.c b/usr.bin/ssh/channels.c
index 37a58f82ed1..70e3c977c77 100644
--- a/usr.bin/ssh/channels.c
+++ b/usr.bin/ssh/channels.c
@@ -16,7 +16,7 @@ arbitrary tcp/ip connections, and the authentication agent connection.
*/
#include "includes.h"
-RCSID("$Id: channels.c,v 1.8 1999/09/30 08:03:39 deraadt Exp $");
+RCSID("$Id: channels.c,v 1.9 1999/09/30 08:34:24 deraadt Exp $");
#include "ssh.h"
#include "packet.h"
@@ -1412,7 +1412,7 @@ void auth_input_request_forwarding(struct passwd *pw)
/* Temporarily use a privileged uid. */
temporarily_use_uid(pw->pw_uid);
- if (bind(sock, (struct sockaddr *)&sunaddr, AF_UNIX_SIZE(sunaddr)) < 0)
+ if (bind(sock, (struct sockaddr *)&sunaddr, sizeof(sunaddr)) < 0)
packet_disconnect("bind: %.100s", strerror(errno));
/* Restore the privileged uid. */