mirror of
https://github.com/samba-team/samba.git
synced 2025-01-21 18:04:06 +03:00
ctdb-common: Fix CID 1125585 Dereference after null check (FORWARD_NULL)
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)
This commit is contained in:
parent
3a182d140d
commit
0bb88b75a5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user