From 451b19597c5436ba481a49ecc89cc113829a9425 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 27 May 2016 11:39:09 +0200 Subject: [PATCH] uac: proper skip of uacreg records with empty attributes --- modules/uac/uac_reg.c | 80 +++++++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 38 deletions(-) diff --git a/modules/uac/uac_reg.c b/modules/uac/uac_reg.c index 41b03ac647f..e2226e84df4 100644 --- a/modules/uac/uac_reg.c +++ b/modules/uac/uac_reg.c @@ -1089,7 +1089,7 @@ void uac_reg_timer(unsigned int ticks) if(reg.attr.len == 0) { \ LM_ERR("empty value not allowed for column[%d]='%.*s' - ignoring record\n", \ pos, db_cols[pos]->len, db_cols[pos]->s); \ - continue; \ + goto nextrec; \ } \ } \ } while(0); @@ -1188,7 +1188,7 @@ int uac_reg_load_db(void) do { for(i=0; i