]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/bio/b_sock.c
Accept NULL in *_free.
[thirdparty/openssl.git] / crypto / bio / b_sock.c
index 2c36150b9b038405bac5d852dbab92c777559ded..402439cc2ef156f0042e1be148abe478572c6183 100644 (file)
@@ -310,6 +310,9 @@ struct hostent *a;
        {
        int i;
 
+       if(a == NULL)
+           return;
+
        if (a->h_aliases != NULL)
                {
                for (i=0; a->h_aliases[i] != NULL; i++)