Skip to content
Snippets Groups Projects
Commit 3a4d1fa5 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

utils: do not call freeaddrinfo if NULL argument (FreeBSD doesn't like it)

refs #2137

Change-Id: Iad3ddfb7aefb426663d036ec2c510cd7447f8fc4
parent 55f58e97
No related branches found
No related tags found
No related merge requests found
......@@ -453,6 +453,11 @@ void net_clean(net_t *net)
free(net->local_str);
free(net->remote_str);
freeaddrinfo(net->remote_info);
freeaddrinfo(net->local_info);
if (net->local_info != NULL) {
freeaddrinfo(net->local_info);
}
if (net->remote_info != NULL) {
freeaddrinfo(net->remote_info);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment