From: Pierre Joye Date: Wed, 7 Jan 2009 01:37:01 +0000 (+0000) Subject: - MFB: sanity check if we got an A as well (valid too but not desired) X-Git-Tag: php-5.4.0alpha1~191^2~4616 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2dcc8c03939907a8b3e03579f22fb997538d52da;p=php - MFB: sanity check if we got an A as well (valid too but not desired) --- diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index 0d81dfdf24..46b14c9332 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -71,6 +71,10 @@ PHP_FUNCTION(dns_get_mx) /* {{{ */ for (pRec = pResult; pRec; pRec = pRec->pNext) { DNS_SRV_DATA *srv = &pRec->Data.Srv; + if (pRec->wType != DNS_TYPE_MX) { + continue; + } + add_next_index_string(mx_list, pRec->Data.MX.pNameExchange, 1); if (weight_list) { add_next_index_long(weight_list, srv->wPriority);