mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-18 05:53:36 +01:00
ifconfig: free memory allocated by getaddrinfo()
Reported by: emaste, Coverity Sponsored by: Rubicon Communications, LLC (Netgate)
This commit is contained in:
parent
949d971f0b
commit
0ab2c92234
@ -242,6 +242,7 @@ setcarp_peer6(const char *val, int d, int s, const struct afswtch *afp)
|
||||
|
||||
memcpy(&carp_addr6, &((struct sockaddr_in6 *)res->ai_addr)->sin6_addr,
|
||||
sizeof(carp_addr6));
|
||||
freeaddrinfo(res);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user