mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-27 08:00:11 +00:00
libalias: add another check to previous change
If UseLink() returns NULL, it is possible that Deletelink()
has already freed "grp", so check it out carefully.
PR: 269770
Reported by: Peter Much
X-MFC-With: 8132e95909
This commit is contained in:
parent
d4a4d1e742
commit
e5b8538083
@ -875,6 +875,9 @@ _FindLinkIn(struct libalias *la, struct in_addr dst_addr,
|
||||
if (found != NULL)
|
||||
return (found);
|
||||
/* link expired */
|
||||
grp = StartPointIn(la, alias_addr, alias_port, link_type, 0);
|
||||
if (grp == NULL)
|
||||
return (NULL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user