=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/channels.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- src/usr.bin/ssh/channels.c 1999/09/30 08:03:39 1.8 +++ src/usr.bin/ssh/channels.c 1999/09/30 08:34:24 1.9 @@ -16,7 +16,7 @@ */ #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 @@ /* 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. */