Skip to content

Commit

Permalink
usrloc: don't quote string representation of time for fetching contac…
Browse files Browse the repository at this point in the history
…ts query

- the db api adds quites around string values
- it results in double quotation, rising db query error
- reported by Giovanni Mele

(cherry picked from commit aeb85ae)
  • Loading branch information
miconda committed May 2, 2016
1 parent ea7d88c commit ffbc744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/usrloc/dlist.c
Expand Up @@ -124,7 +124,7 @@ static inline int get_all_db_ucontacts(void *buf, int len, unsigned int flags,
/* get the current time in DB format */
now.len = 25;
now.s = now_s;
if (db_time2str( time(0), now.s, &now.len)!=0) {
if (db_time2str_ex( time(0), now.s, &now.len, 0)!=0) {
LM_ERR("failed to print now time\n");
return -1;
}
Expand Down

0 comments on commit ffbc744

Please sign in to comment.