Prevent freeing a NULL pointer when a hostname is unresolvable.
This commit is contained in:
parent
4a1740ede7
commit
a36259435c
1 changed files with 2 additions and 1 deletions
|
@ -300,6 +300,7 @@ begin:
|
|||
}
|
||||
|
||||
if(!c->outgoing->aip) {
|
||||
if(c->outgoing->ai)
|
||||
freeaddrinfo(c->outgoing->ai);
|
||||
c->outgoing->ai = NULL;
|
||||
goto begin;
|
||||
|
|
Loading…
Reference in a new issue