summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1997-10-28 18:55:21 +0000
committerguido <guido@FreeBSD.org>1997-10-28 18:55:21 +0000
commit1e49b12039a3e0f391576405bb97723f4ad6024b (patch)
tree60f41520fc85cda0afb98add460ffad82671b260 /sys/netinet
parent2e553bc25069eeeaf344cab2b006655cb04de92c (diff)
downloadFreeBSD-src-1e49b12039a3e0f391576405bb97723f4ad6024b.zip
FreeBSD-src-1e49b12039a3e0f391576405bb97723f4ad6024b.tar.gz
Fix bugs from my previous commit
Submitted by: Bruce Evans
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_input.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 947207e..ee41083 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ip_input.c 8.2 (Berkeley) 1/4/94
- * $Id: ip_input.c,v 1.67 1997/10/27 21:07:26 guido Exp $
+ * $Id: ip_input.c,v 1.68 1997/10/28 15:58:47 bde Exp $
* $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $
*/
@@ -943,12 +943,12 @@ ip_dooptions(m)
code = ICMP_UNREACH_SRCFAIL;
goto bad;
}
+ if (!ip_dosourceroute)
+ goto nosourcerouting;
/*
* Loose routing, and not at next destination
* yet; nothing to do except forward.
*/
- if (!ip_dosourceroute)
- goto nosourcerouting;
break;
}
off--; /* 0 origin */
@@ -962,9 +962,9 @@ ip_dooptions(m)
if (!ip_dosourceroute) {
char buf[4*sizeof "123"];
- strcpy(buf, inet_ntoa(ip->ip_dst));
nosourcerouting:
+ strcpy(buf, inet_ntoa(ip->ip_dst));
log(LOG_WARNING,
"attempted source route from %s to %s\n",
inet_ntoa(ip->ip_src), buf);
OpenPOWER on IntegriCloud