Browse Source

usrloc: proper index for domain column when laoding extra attributes

- patch by Seudin Kasumovic, FS#377
Daniel-Constantin Mierla 11 years ago
parent
commit
551524cfc8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules/usrloc/udomain.c

+ 2 - 2
modules/usrloc/udomain.c

@@ -1250,8 +1250,8 @@ int uldb_preload_attrs(udomain_t *_d)
 			}
 
 			if (use_domain) {
-				domain.s = (char*)VAL_STRING(ROW_VALUES(row) + 6);
-				if (VAL_NULL(ROW_VALUES(row)+6) || domain.s==0 || domain.s[0]==0){
+				domain.s = (char*)VAL_STRING(ROW_VALUES(row) + 5);
+				if (VAL_NULL(ROW_VALUES(row)+5) || domain.s==0 || domain.s[0]==0){
 					LM_CRIT("empty domain record for user %.*s...skipping\n",
 							user.len, user.s);
 					continue;