pajoye Wed Jan 7 01:37:01 2009 UTC
Modified files:
/php-src/ext/standard dns_win32.c
Log:
- MFB: sanity check if we got an A as well (valid too but not desired)
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dns_win32.c?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/standard/dns_win32.c
diff -u php-src/ext/standard/dns_win32.c:1.2
php-src/ext/standard/dns_win32.c:1.3
--- php-src/ext/standard/dns_win32.c:1.2 Tue Jan 6 23:50:30 2009
+++ php-src/ext/standard/dns_win32.c Wed Jan 7 01:37:01 2009
@@ -71,6 +71,10 @@
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);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php