git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e8863b
)
ctdb-common: Fix CID 1125585 Dereference after null check (FORWARD_NULL)
author
Martin Schwenke
<martin@meltin.net>
Fri, 5 Aug 2016 06:39:50 +0000
(16:39 +1000)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 10 Aug 2016 09:24:36 +0000
(11:24 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12110
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit
b4f23a7e95cd9c8fc4a6324d4ec5a2881eaec207
)
ctdb/common/rb_tree.c
patch
|
blob
|
history
diff --git
a/ctdb/common/rb_tree.c
b/ctdb/common/rb_tree.c
index c3b2b91e3b0c7e21849668dff3fb1142143fdba4..990ec6177eb5a710fb8a26702176a020275cd994 100644
(file)
--- a/
ctdb/common/rb_tree.c
+++ b/
ctdb/common/rb_tree.c
@@
-216,7
+216,7
@@
static inline int trbt_get_color_right(trbt_node_t *node)
/* setting a NULL node to black is a nop */
static inline void trbt_set_color(trbt_node_t *node, int color)
{
- if (
(node==NULL) && (color==TRBT_BLACK)
) {
+ if (
node == NULL
) {
return;
}
node->rb_color = color;