Skip to content

Commit

Permalink
uac: skip only the invalid record when loading remote registration re…
Browse files Browse the repository at this point in the history
…cords

- fixes loading only the good records before the wrong record, thus
  working with partial valid data afterwards, even more valid records
  were in the db

(cherry picked from commit 634db00)
  • Loading branch information
miconda committed Apr 1, 2015
1 parent ad6320e commit 21311a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/uac/uac_reg.c
Expand Up @@ -1009,9 +1009,9 @@ void uac_reg_timer(unsigned int ticks)
(char*)(RES_ROWS(db_res)[i].values[pos].val.string_val); \
reg.attr.len = strlen(reg.attr.s); \
if(reg.attr.len == 0) { \
LM_ERR("empty value not allowed for column[%d]=%.*s\n", \
LM_ERR("empty value not allowed for column[%d]='%.*s' - ignoring record\n", \
pos, db_cols[pos]->len, db_cols[pos]->s); \
goto error; \
continue; \
} \
} \
} while(0);
Expand Down

0 comments on commit 21311a1

Please sign in to comment.