Skip to content

Commit

Permalink
Check the correct list
Browse files Browse the repository at this point in the history
This was supposed to check mx_list, not weight_list... oops.
  • Loading branch information
nikic committed Aug 10, 2020
1 parent a06eed0 commit 4723bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/standard/dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ PHP_FUNCTION(dns_get_mx)
}
}
php_dns_free_handle(handle);
RETURN_BOOL(zend_hash_num_elements(Z_ARRVAL_P(weight_list)) != 0);
RETURN_BOOL(zend_hash_num_elements(Z_ARRVAL_P(mx_list)) != 0);
}
/* }}} */
#endif /* HAVE_FULL_DNS_FUNCS */
Expand Down

0 comments on commit 4723bd4

Please sign in to comment.