Check value return from lle_create() for NULL.

This bug sneaked unnoticed in r286722.

Reported by:	adrian
This commit is contained in:
melifaro 2015-08-19 21:08:42 +00:00
parent 2c940643b9
commit 35a4e79d8f

View File

@ -790,10 +790,13 @@ match:
*/
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)