diff options
author | 2000-06-18 17:56:42 +0000 | |
---|---|---|
committer | 2000-06-18 17:56:42 +0000 | |
commit | cde10e08445f54c4bf0b619cdbda195891827a40 (patch) | |
tree | c0a990c4738732db1309d441f207dd60867a07fa | |
parent | don't reset the chip on NORXD, and certainly don't print a message about it (diff) | |
download | wireguard-openbsd-cde10e08445f54c4bf0b619cdbda195891827a40.tar.xz wireguard-openbsd-cde10e08445f54c4bf0b619cdbda195891827a40.zip |
correct logic mistake in in6_pcbnotify, due to indentation.
will KNF it soon.
-rw-r--r-- | sys/netinet6/in6_pcb.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index 2df325de5e0..75cbfee4bdd 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_pcb.c,v 1.16 2000/06/18 17:27:05 itojun Exp $ */ +/* $OpenBSD: in6_pcb.c,v 1.17 2000/06/18 17:56:42 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -616,14 +616,11 @@ in6_pcbnotify(head, dst, fport_arg, la, lport_arg, cmd, notify) * * XXX: we assume in_rtchange does not free the PCB. */ - if (IN6_ARE_ADDR_EQUAL(&inp->inp_route6.ro_dst.sin6_addr, faddr)) { - { - in_rtchange(inp, errno); - } + if (IN6_ARE_ADDR_EQUAL(&inp->inp_route6.ro_dst.sin6_addr, faddr)) + in_rtchange(inp, errno); - if (notify == in_rtchange) - continue; /* there's nothing to do any more */ - } + if (notify == in_rtchange) + continue; /* there's nothing to do any more */ } if (!IN6_ARE_ADDR_EQUAL(&inp->inp_faddr6, faddr) || |