summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-09-22 10:12:26 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-09-22 10:12:26 +0000
commit51e565ecbe96d034877c953d1496eaf48ea08f57 (patch)
tree9401a7ee2bb8209099709a9798cabd05095d922b /sys/netinet/ip_input.c
parentb1031c3814691f6ebdf27decfa7491cd4e1433e3 (diff)
Fix indentation. No binary change.
ok mpi@
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 48fd1ee10f4..7936492d890 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.281 2016/09/15 02:00:18 dlg Exp $ */
+/* $OpenBSD: ip_input.c,v 1.282 2016/09/22 10:12:25 jsg Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -1118,10 +1118,12 @@ ip_dooptions(struct mbuf *m, struct ifnet *ifp)
memcpy(&ipaddr.sin_addr, cp + off,
sizeof(ipaddr.sin_addr));
if (opt == IPOPT_SSRR) {
- if ((ia = ifatoia(ifa_ifwithdstaddr(sintosa(&ipaddr),
- m->m_pkthdr.ph_rtableid))) == NULL)
- ia = ifatoia(ifa_ifwithnet(sintosa(&ipaddr),
- m->m_pkthdr.ph_rtableid));
+ if ((ia = ifatoia(ifa_ifwithdstaddr(
+ sintosa(&ipaddr),
+ m->m_pkthdr.ph_rtableid))) == NULL)
+ ia = ifatoia(ifa_ifwithnet(
+ sintosa(&ipaddr),
+ m->m_pkthdr.ph_rtableid));
if (ia == NULL) {
type = ICMP_UNREACH;
code = ICMP_UNREACH_SRCFAIL;