File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -707,7 +707,6 @@ PHP_FUNCTION(dns_get_record)
707
707
int hostname_len ;
708
708
long type_param = PHP_DNS_ANY ;
709
709
zval * authns = NULL , * addtl = NULL ;
710
- int addtl_recs = 0 ;
711
710
int type_to_fetch ;
712
711
#if defined(HAVE_DNS_SEARCH )
713
712
struct sockaddr_storage from ;
@@ -736,7 +735,6 @@ PHP_FUNCTION(dns_get_record)
736
735
if (addtl ) {
737
736
zval_dtor (addtl );
738
737
array_init (addtl );
739
- addtl_recs = 1 ;
740
738
}
741
739
742
740
if (!raw ) {
@@ -773,7 +771,7 @@ PHP_FUNCTION(dns_get_record)
773
771
}
774
772
775
773
for ( ;
776
- type < (addtl_recs ? (PHP_DNS_NUM_TYPES + 2 ) : PHP_DNS_NUM_TYPES ) || first_query ;
774
+ type < (addtl ? (PHP_DNS_NUM_TYPES + 2 ) : PHP_DNS_NUM_TYPES ) || first_query ;
777
775
type ++
778
776
) {
779
777
first_query = 0 ;
@@ -894,7 +892,7 @@ PHP_FUNCTION(dns_get_record)
894
892
}
895
893
}
896
894
897
- if (addtl_recs && addtl ) {
895
+ if (addtl ) {
898
896
/* Additional records associated with authoritative name servers */
899
897
while (ar -- > 0 && cp && cp < end ) {
900
898
zval * retval = NULL ;
Original file line number Diff line number Diff line change @@ -347,7 +347,6 @@ PHP_FUNCTION(dns_get_record)
347
347
long type_param = PHP_DNS_ANY ;
348
348
zval * authns = NULL , * addtl = NULL ;
349
349
int type , type_to_fetch , first_query = 1 , store_results = 1 ;
350
- int addtl_recs = 0 ;
351
350
zend_bool raw = 0 ;
352
351
353
352
if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "s|lz!z!b" ,
@@ -362,7 +361,6 @@ PHP_FUNCTION(dns_get_record)
362
361
if (addtl ) {
363
362
zval_dtor (addtl );
364
363
array_init (addtl );
365
- addtl_recs = 1 ;
366
364
}
367
365
368
366
if (!raw ) {
@@ -390,7 +388,7 @@ PHP_FUNCTION(dns_get_record)
390
388
}
391
389
392
390
for ( ;
393
- type < (addtl_recs ? (PHP_DNS_NUM_TYPES + 2 ) : PHP_DNS_NUM_TYPES ) || first_query ;
391
+ type < (addtl ? (PHP_DNS_NUM_TYPES + 2 ) : PHP_DNS_NUM_TYPES ) || first_query ;
394
392
type ++
395
393
) {
396
394
DNS_STATUS status ; /* Return value of DnsQuery_A() function */
You can’t perform that action at this time.
0 commit comments