VPP-1585: fix dns test cli
Change-Id: Iac105e09bb88434fe55365fc1546d769f034e0e2 Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
This commit is contained in:

committed by
Florin Coras

parent
36abbf1004
commit
24b77d1be0
@ -2684,7 +2684,7 @@ test_dns_expire_command_fn (vlib_main_t * vm,
|
|||||||
vlib_cli_command_t * cmd)
|
vlib_cli_command_t * cmd)
|
||||||
{
|
{
|
||||||
dns_main_t *dm = &dns_main;
|
dns_main_t *dm = &dns_main;
|
||||||
u8 *name;
|
u8 *name = 0;
|
||||||
uword *p;
|
uword *p;
|
||||||
clib_error_t *e;
|
clib_error_t *e;
|
||||||
dns_cache_entry_t *ep;
|
dns_cache_entry_t *ep;
|
||||||
@ -2694,6 +2694,8 @@ test_dns_expire_command_fn (vlib_main_t * vm,
|
|||||||
vec_add1 (name, 0);
|
vec_add1 (name, 0);
|
||||||
_vec_len (name) -= 1;
|
_vec_len (name) -= 1;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
return clib_error_return (0, "no name provided");
|
||||||
|
|
||||||
dns_cache_lock (dm);
|
dns_cache_lock (dm);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user