Skip to content

Commit

Permalink
A reminder why one should cherry-pick and manually rewrite a long con…
Browse files Browse the repository at this point in the history
…dition. fix condition.
  • Loading branch information
tommybrecher committed Sep 18, 2024
1 parent 66c36c3 commit bd6f66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/clusterer/node_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ int load_db_info(db_func_t *dr_dbf, db_con_t* db_hdl, str *db_table,
} else if (int_vals[INT_VALS_NODE_ID_COL] == current_id) {
LM_ERR("Invalid info for local node\n");
return -1;
} else if (int_vals[INT_VALS_NODE_ID_COL] == current_id && rc == 1) {
} else if (int_vals[INT_VALS_NODE_ID_COL] != current_id && rc == 1) {
LM_ERR("Invalid info for remote node, this will segfault! [%d] current_id=%d\n",
int_vals[INT_VALS_NODE_ID_COL], rc);
return -1;
Expand Down

0 comments on commit bd6f66e

Please sign in to comment.