summaryrefslogtreecommitdiff
path: root/libexec/rlogind
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-13 22:33:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-13 22:33:14 +0000
commit36d253da327efd640ab2711216284746ccf3123e (patch)
tree0d05d7e5b5bd925062c289b13f88d8ff3e075726 /libexec/rlogind
parent9e434e32dbd176f2aa2b34a5bf30bdc63bf85c22 (diff)
if i find one more little problem, and have to make one more little
tweak to this ip option handling code I am going to absolutely scream in rage, following which I will rip the bloody innards out of netinet and build my own new incompatible option checking/processing interface that does not make it so hidiously difficult to check if a session has source routes active!
Diffstat (limited to 'libexec/rlogind')
-rw-r--r--libexec/rlogind/rlogind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c
index 1d2ee6f20b8..052b486e8fa 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.18 1997/02/13 22:29:10 deraadt Exp $";
+static char *rcsid = "$Id: rlogind.c,v 1.19 1997/02/13 22:33:11 deraadt Exp $";
#endif /* not lint */
/*
@@ -270,7 +270,7 @@ doit(f, fromp)
if (getsockopt(0, ipproto, IP_OPTIONS, (char *)&opts,
&optsize) == 0 && optsize != 0) {
for (i = 0; (void *)&opts.ipopt_list[i] - (void *)&opts <
- sizeof opts; ) {
+ optsize; ) {
u_char c = (u_char)opts.ipopt_list[i];
if (c == IPOPT_LSRR || c == IPOPT_SSRR)
exit(1);