Skip to content

Commit 4723bd4

Browse files
committed
Check the correct list
This was supposed to check mx_list, not weight_list... oops.
1 parent a06eed0 commit 4723bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/dns.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ PHP_FUNCTION(dns_get_mx)
11141114
}
11151115
}
11161116
php_dns_free_handle(handle);
1117-
RETURN_BOOL(zend_hash_num_elements(Z_ARRVAL_P(weight_list)) != 0);
1117+
RETURN_BOOL(zend_hash_num_elements(Z_ARRVAL_P(mx_list)) != 0);
11181118
}
11191119
/* }}} */
11201120
#endif /* HAVE_FULL_DNS_FUNCS */

0 commit comments

Comments
 (0)