diff --git a/lib/dns/include/dns/result.h b/lib/dns/include/dns/result.h index 08eadf618c..7e91706386 100644 --- a/lib/dns/include/dns/result.h +++ b/lib/dns/include/dns/result.h @@ -36,8 +36,9 @@ typedef unsigned int dns_result_t; #define DNS_R_BADPOINTER 13 #define DNS_R_TOOMANYHOPS 14 #define DNS_R_DISALLOWED 15 +#define DNS_R_NOMORE 16 -#define DNS_R_LASTENTRY 15 /* Last entry on list. */ +#define DNS_R_LASTENTRY 16 /* Last entry on list. */ #define DNS_R_UNEXPECTED 0xFFFFFFFFL diff --git a/lib/dns/result.c b/lib/dns/result.c index c57b5c6c7e..762cc1e8d3 100644 --- a/lib/dns/result.c +++ b/lib/dns/result.c @@ -36,6 +36,7 @@ static char *text_table[DNS_R_LASTENTRY + 1] = { "bad compression pointer", /* 13 */ "too many hops", /* 14 */ "disallowed (by application policy)", /* 15 */ + "no more list elements", /* 16 */ }; char *