=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rsh/Attic/kcmd.c,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/rsh/Attic/kcmd.c 2002/05/06 22:23:53 1.1 --- src/usr.bin/rsh/Attic/kcmd.c 2002/06/02 19:06:39 1.2 *************** *** 1,4 **** ! /* $OpenBSD: kcmd.c,v 1.1 2002/05/06 22:23:53 deraadt Exp $ */ /* $NetBSD: kcmd.c,v 1.2 1995/03/21 07:58:32 cgd Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: kcmd.c,v 1.2 2002/06/02 19:06:39 deraadt Exp $ */ /* $NetBSD: kcmd.c,v 1.2 1995/03/21 07:58:32 cgd Exp $ */ /* *************** *** 39,45 **** static char Xsccsid[] = "derived from @(#)rcmd.c 5.17 (Berkeley) 6/27/88"; static char sccsid[] = "@(#)kcmd.c 8.2 (Berkeley) 8/19/93"; #else ! static char rcsid[] = "$OpenBSD: kcmd.c,v 1.1 2002/05/06 22:23:53 deraadt Exp $"; #endif #endif /* not lint */ --- 39,45 ---- static char Xsccsid[] = "derived from @(#)rcmd.c 5.17 (Berkeley) 6/27/88"; static char sccsid[] = "@(#)kcmd.c 8.2 (Berkeley) 8/19/93"; #else ! static char rcsid[] = "$OpenBSD: kcmd.c,v 1.2 2002/06/02 19:06:39 deraadt Exp $"; #endif #endif /* not lint */ *************** *** 304,309 **** --- 304,310 ---- if (*alport < IPPORT_RESERVED) *alport = START_PORT; + memset(&sin, 0, sizeof sin); sin.sin_family = AF_INET; sin.sin_addr.s_addr = INADDR_ANY; s = socket(AF_INET, SOCK_STREAM, 0);