blob: 391cc0ee1c2aa70a663de982a3f3078e4fcce764 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
ns_name_skip (unsigned char **x, unsigned char *y)
{
*x = 0;
return 0;
}
unsigned char a[2];
int dn_skipname(unsigned char *ptr, unsigned char *eom) {
unsigned char *saveptr = ptr;
if (ns_name_skip(&ptr, eom) == -1)
return (-1);
return (ptr - saveptr);
}
main()
{
if (dn_skipname (&a[0], &a[1]) == 0)
abort ();
exit (0);
}
|