diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-01-31 17:27:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-01-31 17:27:04 +0000 |
commit | 2bccdd51809becfe909c271f5fef4d380c663209 (patch) | |
tree | aacc10d49e4da03a38127fb2e1c1743cf612a734 /sys/netinet/ip_icmp.c | |
parent | ed445cc242f54511cc5eb7452ddae8f119606cc5 (diff) |
KNF
Diffstat (limited to 'sys/netinet/ip_icmp.c')
-rw-r--r-- | sys/netinet/ip_icmp.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index 00c9e34d1c9..84acb202ccf 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_icmp.c,v 1.54 2003/01/31 17:23:34 henning Exp $ */ +/* $OpenBSD: ip_icmp.c,v 1.55 2003/01/31 17:27:03 deraadt Exp $ */ /* $NetBSD: ip_icmp.c,v 1.19 1996/02/13 23:42:22 christos Exp $ */ /* @@ -340,7 +340,7 @@ icmp_input(struct mbuf *m, ...) goto freeit; } i = hlen + min(icmplen, ICMP_ADVLENMIN); - if (m->m_len < i && (m = m_pullup(m, i)) == NULL) { + if (m->m_len < i && (m = m_pullup(m, i)) == NULL) { icmpstat.icps_tooshort++; return; } @@ -668,11 +668,10 @@ icmp_reflect(m) dst->sin_addr = t; rtalloc(&ro); - if (ro.ro_rt == 0) - { - ipstat.ips_noroute++; - m_freem(m); - goto done; + if (ro.ro_rt == 0) { + ipstat.ips_noroute++; + m_freem(m); + goto done; } ia = ifatoia(ro.ro_rt->rt_ifa); |