[sr-dev] git:master: usrloc(k): updated index of domain column

Daniel-Constantin Mierla miconda at gmail.com
Sat Sep 18 11:27:29 CEST 2010


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Sat Sep 18 11:24:20 2010 +0200

usrloc(k): updated index of domain column

- index is 14
- harmless case since domain value is tested against null as well

---

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

diff --git a/modules_k/usrloc/udomain.c b/modules_k/usrloc/udomain.c
index ce3fde3..8f21e0f 100644
--- a/modules_k/usrloc/udomain.c
+++ b/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;




More information about the sr-dev mailing list