NetLabel: only deref the CIPSOv4 standard map fields when using standard mapping
authorPaul Moore <paul.moore@hp.com>
Wed, 11 Oct 2006 23:10:47 +0000 (19:10 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 16 Oct 2006 06:14:14 +0000 (23:14 -0700)
commit044a68ed8a692f643cf3c0a54c380a922584f34f
tree98c195561377cf01e1411feb0ec859e83cba3ac4
parent1a620698c29b5e18150ec04ace0609fb07d08d3e
NetLabel: only deref the CIPSOv4 standard map fields when using standard mapping

Fix several places in the CIPSO code where it was dereferencing fields which
did not have valid pointers by moving those pointer dereferences into code
blocks where the pointers are valid.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: James Morris <jmorris@namei.org>
net/ipv4/cipso_ipv4.c