1 // dn_expand should accept empty name (single \0)
2 #define _DEFAULT_SOURCE 1
9 unsigned char packet
[] = "";
13 /* empty name in packet */
14 r
= dn_expand(packet
, packet
+1, packet
, name
, 1);
16 t_error("dn_expand(\"\", name, 1) returned %d, wanted 1\n", r
);
18 t_error("dn_expand(\"\", name, 1) failed: got \"%s\" name, wanted \"\"\n", name
);