[sr-dev] git:master:2f4b6375: Merge pull request #86 from kamailio/lazedo/usrloc-patch
lazedo
luis.azedo at factorlusitano.com
Mon Feb 16 14:26:33 CET 2015
Module: kamailio
Branch: master
Commit: 2f4b6375429eeb7fa73d85909150bfd9377582d1
URL: https://github.com/kamailio/kamailio/commit/2f4b6375429eeb7fa73d85909150bfd9377582d1
Author: lazedo <luis.azedo at factorlusitano.com>
Committer: lazedo <luis.azedo at factorlusitano.com>
Date: 2015-02-16T13:26:28Z
Merge pull request #86 from kamailio/lazedo/usrloc-patch
usrloc - fix column types not initialized on update
---
Modified: modules/usrloc/ucontact.c
---
Diff: https://github.com/kamailio/kamailio/commit/2f4b6375429eeb7fa73d85909150bfd9377582d1.diff
Patch: https://github.com/kamailio/kamailio/commit/2f4b6375429eeb7fa73d85909150bfd9377582d1.patch
---
diff --git a/modules/usrloc/ucontact.c b/modules/usrloc/ucontact.c
index 26bf567..737da03 100644
--- a/modules/usrloc/ucontact.c
+++ b/modules/usrloc/ucontact.c
@@ -824,9 +824,9 @@ int db_update_ucontact_addr(ucontact_t* _c)
nr_cols2++;
keys2[nr_cols2] = &ruid_col;
+ vals2[nr_cols2].type = DB1_STR;
if(_c->ruid.len>0)
{
- vals2[nr_cols2].type = DB1_STR;
vals2[nr_cols2].nul = 0;
vals2[nr_cols2].val.str_val = _c->ruid;
} else {
@@ -835,9 +835,9 @@ int db_update_ucontact_addr(ucontact_t* _c)
nr_cols2++;
keys2[nr_cols2] = &instance_col;
+ vals2[nr_cols2].type = DB1_STR;
if(_c->instance.len>0)
{
- vals2[nr_cols2].type = DB1_STR;
vals2[nr_cols2].nul = 0;
vals2[nr_cols2].val.str_val = _c->instance;
} else {
@@ -1036,9 +1036,9 @@ int db_update_ucontact_ruid(ucontact_t* _c)
n2++;
keys2[n2] = &instance_col;
+ vals2[n2].type = DB1_STR;
if(_c->instance.len>0)
{
- vals2[n2].type = DB1_STR;
vals2[n2].nul = 0;
vals2[n2].val.str_val = _c->instance;
} else {
More information about the sr-dev
mailing list