cvs: php-src(PHP_5_0) /ext/standard dns.c
| From: | Antony Dovgal | Date: | Tue, 25 Oct 2005 08:19:50 +0000 |
| Subject: | cvs: php-src(PHP_5_0) /ext/standard dns.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-34766@lists.php.net to get a copy of this message | ||
tony2001 Tue Oct 25 04:19:50 2005 EDT
Modified files: (Branch: PHP_5_0)
/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.68.2.2&r2=1.68.2.3&ty=u
Index: php-src/ext/standard/dns.c
diff -u php-src/ext/standard/dns.c:1.68.2.2 php-src/ext/standard/dns.c:1.68.2.3
--- php-src/ext/standard/dns.c:1.68.2.2 Sun Oct 23 14:35:20 2005
+++ php-src/ext/standard/dns.c Tue Oct 25 04:19:50 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dns.c,v 1.68.2.2 2005/10/23 18:35:20 tony2001 Exp $ */
+/* $Id: dns.c,v 1.68.2.3 2005/10/25 08:19:50 tony2001 Exp $ */
/* {{{ includes */
#include "php.h"
@@ -337,7 +337,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;
@@ -353,6 +353,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) {