Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
misc: fix sonarclound warnings
[vpp.git]
/
src
/
plugins
/
dns
/
dns_test.c
diff --git
a/src/plugins/dns/dns_test.c
b/src/plugins/dns/dns_test.c
index
9d5be8f
..
aefcefb
100644
(file)
--- 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");