فهرست منبع

usrloc: proper index for domain column when laoding extra attributes

- patch by Seudin Kasumovic, FS#377
Daniel-Constantin Mierla 11 سال پیش
والد
کامیت
551524cfc8
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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) {
 			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",
 					LM_CRIT("empty domain record for user %.*s...skipping\n",
 							user.len, user.s);
 							user.len, user.s);
 					continue;
 					continue;