cvs: php4 /ext/standard dns.c
| From: | Sara Golemon | Date: | Tue, 06 May 2003 19:51:46 +0000 |
| Subject: | cvs: php4 /ext/standard dns.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20752@lists.php.net to get a copy of this message | ||
pollita Tue May 6 15:51:46 2003 EDT
Modified files:
/php4/ext/standard dns.c
Log:
HINFO RDATA is <label><label> not <nshort><nshort>
Index: php4/ext/standard/dns.c
diff -u php4/ext/standard/dns.c:1.59 php4/ext/standard/dns.c:1.60
--- php4/ext/standard/dns.c:1.59 Tue Apr 29 18:02:01 2003
+++ php4/ext/standard/dns.c Tue May 6 15:51:46 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dns.c,v 1.59 2003/04/29 22:02:01 pollita Exp $ */
+/* $Id: dns.c,v 1.60 2003/05/06 19:51:46 pollita Exp $ */
/* {{{ includes */
#include "php.h"
@@ -394,10 +394,14 @@
case T_HINFO:
/* See RFC 1010 for values */
add_assoc_string(*subarray, "type", "HINFO", 1);
- GETSHORT(n, cp);
- add_assoc_long(*subarray, "cpu", n);
- GETSHORT(n, cp);
- add_assoc_long(*subarray, "os", n);
+ n = *cp & 0xFF;
+ cp++;
+ add_assoc_stringl(*subarray, "cpu", cp, n, 1);
+ cp += n;
+ n = *cp & 0xFF;
+ cp++;
+ add_assoc_stringl(*subarray, "os", cp, n, 1);
+ cp += n;
break;
case T_TXT:
add_assoc_string(*subarray, "type", "TXT", 1);