]> git.proxmox.com Git - mirror_ovs.git/commit
meta-flow: Avoid null pointer dereference in mf_format_frag_string().
authorBen Pfaff <blp@nicira.com>
Thu, 24 Jan 2013 21:39:23 +0000 (13:39 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 31 Jan 2013 22:12:57 +0000 (14:12 -0800)
commit8f75dea3e4d5f92e2bc5d13a1d92cd368fcd9f11
tree10e6697b0773280559ee080d1ef712ce705adb45
parentb47e6df6be58e4cf4d876dce5ffa36c42ee6e977
meta-flow: Avoid null pointer dereference in mf_format_frag_string().

The 'maskp' parameter to this function can be NULL, but the function
always dereferenced it.  This commit fixes the problem.

This commit also fixes the order in which the value and mask were adjusted
to correctly discard 1-bits outside of FLOW_NW_FRAG_MASK.

Found by Coverity.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/meta-flow.c