mirror of
https://github.com/opnsense/src.git
synced 2026-04-02 16:05:17 -04:00
iscsid(8): free data allocated by getaddrinfo(3)
Reviewed By: mav Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D27329
This commit is contained in:
parent
70e64ba449
commit
7db3d97e0f
1 changed files with 8 additions and 0 deletions
|
|
@ -253,6 +253,10 @@ connection_new(int iscsi_fd, const struct iscsi_daemon_request *request)
|
|||
"using ICL kernel proxy: ISCSIDCONNECT", to_addr);
|
||||
}
|
||||
|
||||
if (from_ai != NULL)
|
||||
freeaddrinfo(from_ai);
|
||||
freeaddrinfo(to_ai);
|
||||
|
||||
return (conn);
|
||||
}
|
||||
#endif /* ICL_KERNEL_PROXY */
|
||||
|
|
@ -330,6 +334,10 @@ connection_new(int iscsi_fd, const struct iscsi_daemon_request *request)
|
|||
log_err(1, "failed to connect to %s", to_addr);
|
||||
}
|
||||
|
||||
if (from_ai != NULL)
|
||||
freeaddrinfo(from_ai);
|
||||
freeaddrinfo(to_ai);
|
||||
|
||||
return (conn);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue