Skip to content

Commit

Permalink
jabber: proper check of NULL return
Browse files Browse the repository at this point in the history
Complete 607d178, fixes CID #40852
  • Loading branch information
razvancrainea authored and liviuchircu committed Sep 30, 2024
1 parent a8ac11e commit ca65023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/jabber/xjab_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ int xj_worker_process(xj_wlist jwl, char* jaddress, int jport, char* priority,
LM_DBG("%d: new connection for <%s>.\n", _xj_pid, buff);
#endif
if(dbf->query(db_con, keys, 0, vals, col, 2, 2, NULL, &res) != 0 ||
(res && RES_ROW_N(res) <= 0))
!res || RES_ROW_N(res) <= 0)
{
#ifdef XJ_EXTRA_DEBUG
LM_DBG("%d: no database result when looking"
Expand Down

0 comments on commit ca65023

Please sign in to comment.