Parcourir la source

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 il y a 15 ans
Parent
commit
40902d1e04
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;