summaryrefslogtreecommitdiffstats
path: root/src/plugins/dns/dns_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/dns/dns_test.c')
-rw-r--r--src/plugins/dns/dns_test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/dns/dns_test.c b/src/plugins/dns/dns_test.c
index 9d5be8fcc1b..aefcefb51ac 100644
--- a/src/plugins/dns/dns_test.c
+++ b/src/plugins/dns/dns_test.c
@@ -123,6 +123,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");