@@ -363,6 +363,7 @@ void names(void **state)
363
363
static const char only_null_labels [] = ".." ;
364
364
static const char last_label_is_null [] = "foo.." ;
365
365
static const char first_label_is_null [] = "..foo" ;
366
+ static const char star_dot_3 [] = "\\042.\\042.\\042.wcent.nlnetlabs.nl." ;
366
367
367
368
static const uint8_t owner_abs_0 [] = { 1 , 0 , 0 };
368
369
static const uint8_t owner_abs_spc [] = { 1 , ' ' , 0 };
@@ -409,6 +410,9 @@ void names(void **state)
409
410
29 ,'0' ,'1' ,'2' ,'3' ,'4' ,'5' ,'6' ,'7' ,'8' ,'9' ,'a' ,'b' ,'c' ,'d' ,'e' ,'f' ,
410
411
'0' ,'1' ,'2' ,'3' ,'4' ,'5' ,'6' ,'7' ,'8' ,'9' ,'a' ,'b' ,'c' ,
411
412
0 };
413
+ static const uint8_t owner_star_dot_3 [] = {
414
+ 1 , '*' , 1 , '*' , 1 , '*' , 5 , 'w' , 'c' , 'e' , 'n' , 't' , 9 , 'n' , 'l' , 'n' , 'e' , 't' , 'l' , 'a' , 'b' , 's' , 2 , 'n' , 'l' , 0
415
+ };
412
416
413
417
static struct names_test tests [] = {
414
418
{ only_rel_label_too_long , ZONE_SYNTAX_ERROR , { 0 , NULL } },
@@ -432,7 +436,8 @@ void names(void **state)
432
436
{ "foo\\000." , 0 , { 6 , owner_abs_foo0 } },
433
437
{ "foo\\000\\000." , 0 , { 7 , owner_abs_foo00 } },
434
438
{ "foo\\.." , 0 , { 6 , owner_abs_foodot } },
435
- { "foo\\." , 0 , { 10 , owner_rel_foodot } }
439
+ { "foo\\." , 0 , { 10 , owner_rel_foodot } },
440
+ { star_dot_3 , 0 , { sizeof (owner_star_dot_3 ), owner_star_dot_3 } }
436
441
};
437
442
438
443
static const uint8_t origin [] = { 3 , 'f' , 'o' , 'o' , 0 };
0 commit comments