From 194e8765356509954e745730695ffe3c48f26842 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 5 Feb 1997 14:26:49 +0000 Subject: [PATCH] need not clear options since bad ones cause exit; provos@ws1.physnet.uni-hamburg.de --- libexec/rlogind/rlogind.c | 8 +------- libexec/rshd/rshd.c | 7 +------ 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c index a429e538566..c9789037856 100644 --- a/libexec/rlogind/rlogind.c +++ b/libexec/rlogind/rlogind.c @@ -39,7 +39,7 @@ static char copyright[] = #ifndef lint /* from: static char sccsid[] = "@(#)rlogind.c 8.1 (Berkeley) 6/4/93"; */ -static char *rcsid = "$Id: rlogind.c,v 1.14 1997/02/05 04:18:27 deraadt Exp $"; +static char *rcsid = "$Id: rlogind.c,v 1.15 1997/02/05 14:26:52 deraadt Exp $"; #endif /* not lint */ /* @@ -282,12 +282,6 @@ doit(f, fromp) break; i += (c == IPOPT_NOP) ? 1 : optbuf[i+1]; } - if (setsockopt(0, ipproto, IP_OPTIONS, - (char *)NULL, optsize) != 0) { - syslog(LOG_ERR, - "setsockopt IP_OPTIONS NULL: %m"); - exit(1); - } } } #endif diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c index 0e02071c23d..2c6715c9344 100644 --- a/libexec/rshd/rshd.c +++ b/libexec/rshd/rshd.c @@ -39,7 +39,7 @@ static char copyright[] = #ifndef lint /* from: static char sccsid[] = "@(#)rshd.c 8.2 (Berkeley) 4/6/94"; */ -static char *rcsid = "$Id: rshd.c,v 1.11 1997/02/05 04:18:30 deraadt Exp $"; +static char *rcsid = "$Id: rshd.c,v 1.12 1997/02/05 14:26:49 deraadt Exp $"; #endif /* not lint */ /* @@ -262,11 +262,6 @@ doit(fromp) break; i += (c == IPOPT_NOP) ? 1 : optbuf[i+1]; } - if (setsockopt(0, ipproto, IP_OPTIONS, - (char *)NULL, optsize) != 0) { - syslog(LOG_ERR, "setsockopt IP_OPTIONS NULL: %m"); - exit(1); - } } } #endif -- 2.20.1