From 21311a110cb0d70a53224d12ced09972a0a15235 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Thu, 26 Feb 2015 21:58:47 +0100 Subject: [PATCH] uac: skip only the invalid record when loading remote registration records - 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 634db00a82f36c6c60d272ccada4a1d5338d1cbc) --- modules/uac/uac_reg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/uac/uac_reg.c b/modules/uac/uac_reg.c index db8991789b8..1f47ee5b3e8 100644 --- a/modules/uac/uac_reg.c +++ b/modules/uac/uac_reg.c @@ -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);