diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2003-11-04 22:39:39 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2003-11-04 22:39:39 +0000 |
commit | 6aab52a1da373667e4ae7e00fb31c81af82bebef (patch) | |
tree | 68ddb65a37e26875cd06891703a57043d6cfcd2a /sys | |
parent | 0e8b68b298c5befdeb7e75e8daf0c6a6c676d890 (diff) |
don't call in_pcbrehash twice; ok itojun@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet6/in6_pcb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index 8ca104ca0a4..b11faf5aeac 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_pcb.c,v 1.37 2003/10/01 21:41:05 itojun Exp $ */ +/* $OpenBSD: in6_pcb.c,v 1.38 2003/11/04 22:39:38 markus Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -291,10 +291,10 @@ in6_pcbbind(inp, nam) error = in6_pcbsetport(&inp->inp_laddr6, inp, p); if (error != 0) return error; - } else + } else { inp->inp_lport = lport; - - in_pcbrehash(inp); + in_pcbrehash(inp); + } return 0; } |