Check value return from lle_create() for NULL.
This bug sneaked unnoticed in r286722. Reported by: adrian
This commit is contained in:
parent
a2db2e2fac
commit
a4141c63c5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286945
@ -790,10 +790,13 @@ in_arpinput(struct mbuf *m)
|
||||
*/
|
||||
IF_AFDATA_WLOCK(ifp);
|
||||
la = lla_create(LLTABLE(ifp), 0, (struct sockaddr *)&sin);
|
||||
arp_update_lle(ah, ifp, la);
|
||||
if (la != NULL)
|
||||
arp_update_lle(ah, ifp, la);
|
||||
IF_AFDATA_WUNLOCK(ifp);
|
||||
arp_mark_lle_reachable(la);
|
||||
LLE_WUNLOCK(la);
|
||||
if (la != NULL) {
|
||||
arp_mark_lle_reachable(la);
|
||||
LLE_WUNLOCK(la);
|
||||
}
|
||||
}
|
||||
reply:
|
||||
if (op != ARPOP_REQUEST)
|
||||
|
Loading…
Reference in New Issue
Block a user