Module: sip-router Branch: 4.0 Commit: 33d71771185812cba24f6213c7d8e4b9831b9b5a URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=33d71771...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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
(cherry picked from commit 551524cfc83b922c23e2d26f8cc5950df2a0af54)
---
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 13632d2..d3275b8 100644 --- a/modules/usrloc/udomain.c +++ b/modules/usrloc/udomain.c @@ -1245,8 +1245,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;