Check retifma for NULL before using it.
PR: kern/9391 Submitted by: Assar Westerlund <assar@sics.se> MFC after: 3 days
This commit is contained in:
parent
0830bd135e
commit
13990766ef
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99250
@ -1749,7 +1749,8 @@ if_addmulti(ifp, sa, retifma)
|
||||
s = splimp();
|
||||
TAILQ_INSERT_HEAD(&ifp->if_multiaddrs, ifma, ifma_link);
|
||||
splx(s);
|
||||
*retifma = ifma;
|
||||
if (retifma != NULL)
|
||||
*retifma = ifma;
|
||||
|
||||
if (llsa != 0) {
|
||||
TAILQ_FOREACH(ifma, &ifp->if_multiaddrs, ifma_link) {
|
||||
|
Loading…
Reference in New Issue
Block a user