Commit f44ea4f5 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

su_addrinfo.c: avoid crash in su_freeaddrinfo() if ai is NULL

parent 749d9eb2
......@@ -805,6 +805,9 @@ freeaddrinfo(ai)
struct addrinfo *next;
if (ai == NULL)
do {
next = ai->ai_next;
if (ai->ai_canonname)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment