Skip to content

Commit

Permalink
usrloc: check if database handle is initialized for db_update_ucontac…
Browse files Browse the repository at this point in the history
…t_ruid()
  • Loading branch information
miconda committed May 16, 2023
1 parent 94dd64a commit c8893cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/usrloc/ucontact.c
Expand Up @@ -1000,6 +1000,11 @@ int db_update_ucontact_ruid(ucontact_t* _c)
return -1;
}

if (ul_dbh==NULL) {
LM_ERR("database connection handle not initialized\n");
return -1;
}

n1 = 0;
keys1[n1] = &ul_ruid_col;
vals1[n1].type = DB1_STR;
Expand Down

0 comments on commit c8893cc

Please sign in to comment.