brcompat: Check for null pointer before reading netlink attribute.
authorBen Pfaff <blp@nicira.com>
Thu, 23 Apr 2009 18:23:43 +0000 (11:23 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 24 Apr 2009 18:09:56 +0000 (11:09 -0700)
commit8107f7d22e63beddf381fdd88f58f3cc761267c2
tree667ad62f150e1e5533bf0ff670123916c157cc6d
parent9b98f70e4920c6582b3320fa618ae1c4aadfb6dd
brcompat: Check for null pointer before reading netlink attribute.

Netlink policy parsing only checks that, if an attribute is present, then
its format is correct.  It doesn't ensure that attributes are present, so
an explicit check is needed, which this commit adds.
datapath/brcompat.c