projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
255a54e
)
nx-match: Avoid null pointer dereference in nx_pull_header__() error case.
author
Ben Pfaff
<blp@nicira.com>
Thu, 16 Apr 2015 21:04:47 +0000
(14:04 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 17 Apr 2015 16:20:27 +0000
(09:20 -0700)
Found by LLVM scan-build.
Reported-by: Kevin Lo <kevlo@FreeBSD.org>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/nx-match.c
patch
|
blob
|
history
diff --git
a/lib/nx-match.c
b/lib/nx-match.c
index
4b72460
..
21f291c
100644
(file)
--- a/
lib/nx-match.c
+++ b/
lib/nx-match.c
@@
-319,7
+319,9
@@
bad_len:
b->size);
error:
*header = 0;
- *field = NULL;
+ if (field) {
+ *field = NULL;
+ }
return OFPERR_OFPBMC_BAD_LEN;
}