mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Check for DNS_R_NAMETOOLONG when testing names that are too long.
This commit is contained in:
parent
4b7d316065
commit
0e71d03672
2 changed files with 4 additions and 2 deletions
|
|
@ -29,4 +29,4 @@
|
|||
# ISC_R_UNEXPECTEDEND
|
||||
# DNS_R_TOOMANYHOPS
|
||||
#
|
||||
wire_test4.data 550 1 DNS_COMPRESS_ALL vix.com. DNS_R_FORMERR
|
||||
wire_test4.data 550 1 DNS_COMPRESS_ALL vix.com. DNS_R_NAMETOOLONG
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: t_names.c,v 1.25 2000/06/22 21:51:14 tale Exp $ */
|
||||
/* $Id: t_names.c,v 1.26 2000/07/14 22:21:14 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -2235,6 +2235,8 @@ t_dns_name_fromwire_x(const char *testfile, size_t buflen) {
|
|||
exp_result = DNS_R_TOOMANYHOPS;
|
||||
else if (! strcmp(tok, "DNS_R_DISALLOWED"))
|
||||
exp_result = DNS_R_DISALLOWED;
|
||||
else if (! strcmp(tok, "DNS_R_NAMETOOLONG"))
|
||||
exp_result = DNS_R_NAMETOOLONG;
|
||||
|
||||
tok = Tokens[3];
|
||||
dc_method = DNS_COMPRESS_NONE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue