From 6aab52a1da373667e4ae7e00fb31c81af82bebef Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Tue, 4 Nov 2003 22:39:39 +0000 Subject: don't call in_pcbrehash twice; ok itojun@ --- sys/netinet6/in6_pcb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') 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; } -- cgit v1.2.3