nx-match: Succeed pulling 0-byte nx-match from NULL buffer.
authorBen Pfaff <blp@nicira.com>
Thu, 19 Jul 2012 07:15:19 +0000 (00:15 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 19 Jul 2012 07:23:25 +0000 (00:23 -0700)
commita3a0c29e2b11d8fcae86043cd16520ecbaa03731
treefe81e0ae60a684911358790549635b38cd3ce96d
parentedce886c92dc34797a36fd9dd20c530e1799f082
nx-match: Succeed pulling 0-byte nx-match from NULL buffer.

I don't think this corner case can come up in a real OpenFlow message,
because the presence of the OpenFlow header guarantees that the ofpbuf's
data is nonnull, but it did in a simple test that is coming up in a few
commits.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/nx-match.c