Remove extraneous unlock. This fixes a panic seen when manipulating static

entries in the ARP table.
This commit is contained in:
Sam Leffler 2004-01-07 23:42:21 +00:00
parent a8e1969bfb
commit d4b2657f98
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124237

View file

@ -1277,7 +1277,7 @@ rt_check(struct rtentry **lrt, struct rtentry **lrt0, struct sockaddr *dst)
rt = rtalloc1(dst, 1, 0UL);
if (rt != NULL) {
RT_REMREF(rt);
RT_UNLOCK(rt);
/* XXX what about if change? */
} else
senderr(EHOSTUNREACH);
rt0 = rt;