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:
a0f55c9
)
ip6-nd: fix coverity warning
01/34101/2
author
Klement Sekera
<ksekera@cisco.com>
Wed, 13 Oct 2021 20:29:49 +0000
(22:29 +0200)
committer
Andrew Yourtchenko
<ayourtch@gmail.com>
Thu, 14 Oct 2021 07:13:18 +0000
(07:13 +0000)
Add a missing return statement in case there are no parameters supplied
to 'set ip6 nd proxy' CLI to avoid calling code with uninitialised
parameters.
Type: fix
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: Ie4fdb4df5d1af49471c421e5e7a6c2f885d2e8d2
src/vnet/ip6-nd/ip6_nd_proxy.c
patch
|
blob
|
history
diff --git
a/src/vnet/ip6-nd/ip6_nd_proxy.c
b/src/vnet/ip6-nd/ip6_nd_proxy.c
index
ea7ca56
..
256b485
100644
(file)
--- a/
src/vnet/ip6-nd/ip6_nd_proxy.c
+++ b/
src/vnet/ip6-nd/ip6_nd_proxy.c
@@
-107,6
+107,10
@@
set_ip6_nd_proxy_cmd (vlib_main_t * vm,
return (unformat_parse_error (input));
}
}
+ else
+ {
+ return error;
+ }
ip6_nd_proxy_add_del (sw_if_index, &addr, is_del);