Module: kamailio
Branch: 4.1
Commit: 8bed6769527eaf5aca47b5d1b3fe096090dac1f2
URL:
https://github.com/kamailio/kamailio/commit/8bed6769527eaf5aca47b5d1b3fe096…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2015-01-06T23:01:49+01:00
usrloc: fixed issue updating last_modified
- introduced in previous commit ( Closes #6 )
(based on commit 767c2bc60f7f5a601118329df2c16b2646dbb58f)
---
Modified: modules/usrloc/ucontact.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8bed6769527eaf5aca47b5d1b3fe096…
Patch:
https://github.com/kamailio/kamailio/commit/8bed6769527eaf5aca47b5d1b3fe096…
---
diff --git a/modules/usrloc/ucontact.c b/modules/usrloc/ucontact.c
index 90c32d7..79a0a1f 100644
--- a/modules/usrloc/ucontact.c
+++ b/modules/usrloc/ucontact.c
@@ -805,7 +805,7 @@ int db_update_ucontact_addr(ucontact_t* _c)
keys2[nr_cols2] = &last_mod_col;
vals2[nr_cols2].type = DB1_DATETIME;
vals2[nr_cols2].nul = 0;
- vals2[nr_cols2].val = _c->last_modified;
+ vals2[nr_cols2].val.time_val = _c->last_modified;
nr_cols2++;
keys2[nr_cols2] = &ruid_col;