Browse code

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

Daniel-Constantin Mierla authored on 26/02/2015 20:58:47
Showing 1 changed files
... ...
@@ -1007,9 +1007,9 @@ void uac_reg_timer(unsigned int ticks)
1007 1007
 				(char*)(RES_ROWS(db_res)[i].values[pos].val.string_val); \
1008 1008
 			reg.attr.len = strlen(reg.attr.s); \
1009 1009
 			if(reg.attr.len == 0) { \
1010
-				LM_ERR("empty value not allowed for column[%d]=%.*s\n", \
1010
+				LM_ERR("empty value not allowed for column[%d]='%.*s' - ignoring record\n", \
1011 1011
 						pos, db_cols[pos]->len, db_cols[pos]->s); \
1012
-				goto error; \
1012
+				continue; \
1013 1013
 			} \
1014 1014
 		} \
1015 1015
 	} while(0);