Module: sip-router
Branch: master
Commit: b9117ecdc8f1c122fc472fc5c9c18c0473e8d357
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b9117ec…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: Thu Jun 25 19:00:57 2009 +0300
* modules/utils: fixed type of DB query string
* In xcap doc query, user and domain query parameters are of type
DB1_STR instead of DB1_STRING.
---
modules/utils/xcap_auth.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/utils/xcap_auth.c b/modules/utils/xcap_auth.c
index be419a8..e1d56f3 100644
--- a/modules/utils/xcap_auth.c
+++ b/modules/utils/xcap_auth.c
@@ -348,13 +348,13 @@ int get_rules_doc(str* user, str* domain, int type, str**
rules_doc)
user->len, user->s, domain->len, domain->s);
query_cols[n_query_cols] = &tmp1;
- query_vals[n_query_cols].type = DB1_STRING;
+ query_vals[n_query_cols].type = DB1_STR;
query_vals[n_query_cols].nul = 0;
query_vals[n_query_cols].val.str_val = *user;
n_query_cols++;
query_cols[n_query_cols] = &tmp2;
- query_vals[n_query_cols].type = DB1_STRING;
+ query_vals[n_query_cols].type = DB1_STR;
query_vals[n_query_cols].nul = 0;
query_vals[n_query_cols].val.str_val = *domain;
n_query_cols++;