[sr-dev] git:master: usrloc: proper index for domain column when laoding extra attributes

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 6 18:04:07 CET 2013


Module: sip-router
Branch: master
Commit: 551524cfc83b922c23e2d26f8cc5950df2a0af54
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=551524cfc83b922c23e2d26f8cc5950df2a0af54

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Fri Dec  6 18:02:36 2013 +0100

usrloc: proper index for domain column when laoding extra attributes

- patch by Seudin Kasumovic, FS#377

---

 modules/usrloc/udomain.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/usrloc/udomain.c b/modules/usrloc/udomain.c
index 244f8e7..a736051 100644
--- a/modules/usrloc/udomain.c
+++ b/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;




More information about the sr-dev mailing list