tony2001                Tue Oct 25 04:19:12 2005 EDT

  Modified files:              
    /php-src/ext/standard       dns.c 
  Log:
  fix problem with garbage appearing in hostnames
  
  
http://cvs.php.net/diff.php/php-src/ext/standard/dns.c?r1=1.74&r2=1.75&ty=u
Index: php-src/ext/standard/dns.c
diff -u php-src/ext/standard/dns.c:1.74 php-src/ext/standard/dns.c:1.75
--- php-src/ext/standard/dns.c:1.74     Sun Oct 23 14:31:36 2005
+++ php-src/ext/standard/dns.c  Tue Oct 25 04:19:11 2005
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: dns.c,v 1.74 2005/10/23 18:31:36 tony2001 Exp $ */
+/* $Id: dns.c,v 1.75 2005/10/25 08:19:11 tony2001 Exp $ */
 
 /* {{{ includes */
 #include "php.h"
@@ -387,7 +387,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;
@@ -404,6 +404,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

Reply via email to