Module: sip-router
Branch: sr_3.0
Commit: 653edd03e251e82e30e33a20ef6b1730817e9590
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=653edd03e251e82e30e33a20ef6b1730817e9590

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Andrei Pelinescu-Onciul <[email protected]>
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
(cherry picked from commit 390eefb442f0b3b41cf5a708270ecd98765b4a66)

---

 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;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to