]> git.proxmox.com Git - mirror_iproute2.git/commit
devlink: Check return code of strslashrsplit()
authorPhil Sutter <phil@nwl.cc>
Mon, 21 Aug 2017 16:36:52 +0000 (18:36 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 22 Aug 2017 00:28:03 +0000 (17:28 -0700)
commit6e33f7b0f6e04dd46bea24c3ab28d61e54625dd7
tree023d5287252d50806a6722182cdf22c5f097347c
parent84b6a3f4b5720aaf673c2eaad2cf60f786de077b
devlink: Check return code of strslashrsplit()

This function shouldn't fail because all callers of
__dl_argv_handle_port() make sure the passed string contains enough
slashes already, but better make sure if this changes in future the
function won't access uninitialized data.

Signed-off-by: Phil Sutter <phil@nwl.cc>
devlink/devlink.c