diff options
Diffstat (limited to 'src/plugins/dns/dns_test.c')
-rw-r--r-- | src/plugins/dns/dns_test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/dns/dns_test.c b/src/plugins/dns/dns_test.c index 6b0b371dca1..ada9c0b7aa1 100644 --- a/src/plugins/dns/dns_test.c +++ b/src/plugins/dns/dns_test.c @@ -186,6 +186,12 @@ api_dns_resolve_name (vat_main_t * vam) break; } + if (name == 0) + { + errmsg ("missing name to resolve"); + return -99; + } + if (vec_len (name) > 127) { errmsg ("name too long"); |