Skip to content

Commit f5aae18

Browse files
author
Ilia Alshanetsky
committed
MFB: Fixed bug #43871 (crash inside dns_get_record)
1 parent e4c02a6 commit f5aae18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/dns.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ PHP_FUNCTION(dns_get_record)
654654
char *hostname;
655655
int hostname_len;
656656
long type_param = PHP_DNS_ANY;
657-
zval *authns, *addtl;
657+
zval *authns = NULL, *addtl = NULL;
658658
int addtl_recs = 0;
659659
int type_to_fetch;
660660
struct __res_state res;

0 commit comments

Comments
 (0)