瀏覽代碼

usrloc(k): updated index of domain column

- index is 14
- harmless case since domain value is tested against null as well
(cherry picked from commit 390eefb442f0b3b41cf5a708270ecd98765b4a66)
Daniel-Constantin Mierla 15 年之前
父節點
當前提交
40902d1e04
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules_k/usrloc/udomain.c

+ 1 - 1
modules_k/usrloc/udomain.c

@@ -433,7 +433,7 @@ int preload_udomain(db1_con_t* _c, udomain_t* _d)
 
 			if (use_domain) {
 				domain = (char*)VAL_STRING(ROW_VALUES(row) + 14);
-				if (VAL_NULL(ROW_VALUES(row)+13) || domain==0 || domain[0]==0){
+				if (VAL_NULL(ROW_VALUES(row)+14) || domain==0 || domain[0]==0){
 					LM_CRIT("empty domain record for user %.*s...skipping\n",
 							user.len, user.s);
 					continue;