mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
ctdb-common: Fix CID 1125581 Dereference after null check (FORWARD_NULL)
This also fixes CID 1125582. 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>
This commit is contained in:
parent
f802a11d3b
commit
7ae3699831
@ -230,7 +230,7 @@ static inline void trbt_set_color_left(trbt_node_t *node, int color)
|
||||
}
|
||||
static inline void trbt_set_color_right(trbt_node_t *node, int color)
|
||||
{
|
||||
if ( ((node==NULL)||(node->right==NULL)) && (color==TRBT_BLACK) ) {
|
||||
if (node == NULL || node->right == NULL) {
|
||||
return;
|
||||
}
|
||||
node->right->rb_color = color;
|
||||
|
Loading…
x
Reference in New Issue
Block a user