]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #43871 (crash inside dns_get_record)
authorIlia Alshanetsky <iliaa@php.net>
Thu, 17 Jan 2008 14:12:36 +0000 (14:12 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 17 Jan 2008 14:12:36 +0000 (14:12 +0000)
ext/standard/dns.c

index e546cfd2f3483fa03f4c8e6ef7de6f41be140610..791b17a9017c331ca47b1ab114cab8d077ca6ee9 100644 (file)
@@ -654,7 +654,7 @@ PHP_FUNCTION(dns_get_record)
        char *hostname;
        int hostname_len;
        long type_param = PHP_DNS_ANY;
-       zval *authns, *addtl;
+       zval *authns = NULL, *addtl = NULL;
        int addtl_recs = 0;
        int type_to_fetch;
        struct __res_state res;