Skip to content
Commit ba57ee09 authored by Li Qiong's avatar Li Qiong Committed by Pablo Neira Ayuso
Browse files

ipvs: add a 'default' case in do_ip_vs_set_ctl()



It is better to return the default switch case with
'-EINVAL', in case new commands are added. otherwise,
return a uninitialized value of ret.

Signed-off-by: default avatarLi Qiong <liqiong@nfschina.com>
Reviewed-by: default avatarSimon Horman <horms@verge.net.au>
Acked-by: default avatarJulian Anastasov <ja@ssi.bg>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 5fb45f95
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment