diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-06-18 17:56:43 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-06-18 17:56:43 +0000 |
commit | 69a21ea0afdd021cb62f457b1cf6f2a69856ee12 (patch) | |
tree | 695db598d309143a5214d4d971229a722c1c5653 /sys | |
parent | 2d058980b0392ad45bdcf5d2e6ab35a99070a0e0 (diff) |
correct logic mistake in in6_pcbnotify, due to indentation.
will KNF it soon.
Diffstat (limited to 'sys')
-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) || |