]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip/xfrm: Fix potential SIGSEGV when printing extra flags
authorThomas Egerer <thomas.egerer@secunet.com>
Thu, 29 Aug 2013 12:00:36 +0000 (14:00 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Sat, 31 Aug 2013 17:33:21 +0000 (10:33 -0700)
commit1ed509bb522225050edfa1ed7ddc7255e9a18bd5
tree3585174fe007f55dcb34548ffbca0146538474ae
parent7dc0481aa15c96f78079144c52c530c4b8a17f9e
ip/xfrm: Fix potential SIGSEGV when printing extra flags

The git-commit dc8867d0, that added support for displaying the
extra-flags of a state, introduced a potential segfault.
Trying to show a state without the extra-flag attribute and show_stats
enabled, would cause the NULL pointer in tb[XFRMA_SA_EXTRA_FLAGS] to be
dereferenced.

Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
ip/ipxfrm.c