[riot-notifications] [RIOT] fib: added check for passing NULL pointers to `fib_get_next_hop()` (#3250)
notifications at github.com
Wed Jun 24 09:15:57 CEST 2015
Added a check on the `fib_get_next_hop()` call if one of the out-parameters is a NULL pointer.
Doing so will return `-EINVAL` to the caller, so basically its a tiny API change/extension.
This PR originated from the discussion in #3233 and might help with issue #3249
Additionally added a unittest covering this change.
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* fib: added check for passing NULL pointers to `fib_get_next_hop()`
-- File Changes --
M sys/include/net/ng_fib.h (1)
M sys/net/network_layer/fib/fib.c (9)
M tests/unittests/tests-fib/tests-fib.c (40)
-- Patch Links --
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications