]> git.puffer.fish Git - matthieu/frr.git/commit
lib: don't abort when incomplete xpath is given by the user
authorRenato Westphal <renato@opensourcerouting.org>
Mon, 14 Jan 2019 18:29:18 +0000 (16:29 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 14 Jan 2019 18:33:21 +0000 (16:33 -0200)
commit9f6de29901ed93e7db721b20e861c598364fa9a2
tree84d9db30030f04373a0ec4094dd551f48d1d4be4
parentf65fb6b4b4530b6f4aa7408a4e256017ccb0f2c2
lib: don't abort when incomplete xpath is given by the user

Instead of aborting when an incomplete xpath is given to the
nb_oper_data_iterate() function, just return an error so that the
callers have a chance to treat this error. Aborting based on invalid
user input is never the right thing to do.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/northbound.c