* commit 'e6594658f7d36172007a2573e345d6ae0d0ac58a': Fix freeaddrinfo(NULL).
This commit is contained in:
@@ -324,7 +324,11 @@ freeaddrinfo(struct addrinfo *ai)
|
||||
{
|
||||
struct addrinfo *next;
|
||||
|
||||
assert(ai != NULL);
|
||||
#if __ANDROID__
|
||||
if (ai == NULL) return;
|
||||
#else
|
||||
_DIAGASSERT(ai != NULL);
|
||||
#endif
|
||||
|
||||
do {
|
||||
next = ai->ai_next;
|
||||
|
Reference in New Issue
Block a user