tony2001 Tue Oct 25 04:19:33 2005 EDT
Modified files: (Branch: PHP_5_1)
/php-src/ext/standard dns.c
Log:
MFH: fix problem with garbage appearing in hostnames
http://cvs.php.net/diff.php/php-src/ext/standard/dns.c?r1=1.70.2.3&r2=1.70.2.4&ty=u
Index: php-src/ext/standard/dns.c
diff -u php-src/ext/standard/dns.c:1.70.2.3 php-src/ext/standard/dns.c:1.70.2.4
--- php-src/ext/standard/dns.c:1.70.2.3 Sun Oct 23 14:34:26 2005
+++ php-src/ext/standard/dns.c Tue Oct 25 04:19:33 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dns.c,v 1.70.2.3 2005/10/23 18:34:26 tony2001 Exp $ */
+/* $Id: dns.c,v 1.70.2.4 2005/10/25 08:19:33 tony2001 Exp $ */
/* {{{ includes */
#include "php.h"
@@ -379,7 +379,7 @@
/* {{{ php_parserr */
static u_char *php_parserr(u_char *cp, querybuf *answer, int type_to_fetch,
int store, zval **subarray)
{
- u_short type, dlen;
+ u_short type, class, dlen;
u_long ttl;
long n, i;
u_short s;
@@ -396,6 +396,7 @@
cp += n;
GETSHORT(type, cp);
+ GETSHORT(class, cp);
GETLONG(ttl, cp);
GETSHORT(dlen, cp);
if (type_to_fetch != T_ANY && type != type_to_fetch) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php