Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
36abbf1
)
VPP-1585: fix dns test cli
12/18212/2
author
Filip Tehlar
<ftehlar@cisco.com>
Tue, 12 Mar 2019 13:17:59 +0000
(06:17 -0700)
committer
Florin Coras
<florin.coras@gmail.com>
Tue, 12 Mar 2019 18:40:30 +0000
(18:40 +0000)
Change-Id: Iac105e09bb88434fe55365fc1546d769f034e0e2
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
src/vnet/dns/dns.c
patch
|
blob
|
history
diff --git
a/src/vnet/dns/dns.c
b/src/vnet/dns/dns.c
index
15d40be
..
7d52f75
100644
(file)
--- a/
src/vnet/dns/dns.c
+++ b/
src/vnet/dns/dns.c
@@
-2684,7
+2684,7
@@
test_dns_expire_command_fn (vlib_main_t * vm,
vlib_cli_command_t * cmd)
{
dns_main_t *dm = &dns_main;
- u8 *name;
+ u8 *name
= 0
;
uword *p;
clib_error_t *e;
dns_cache_entry_t *ep;
@@
-2694,6
+2694,8
@@
test_dns_expire_command_fn (vlib_main_t * vm,
vec_add1 (name, 0);
_vec_len (name) -= 1;
}
+ else
+ return clib_error_return (0, "no name provided");
dns_cache_lock (dm);