Module: kamailio
Branch: lazedo/4.2
Commit: bff4e99d81353dbf02e0a6f609f762237ff589fd
URL:
https://github.com/kamailio/kamailio/commit/bff4e99d81353dbf02e0a6f609f7622…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2015-01-06T22:34:29+01:00
usrloc: fixed issue updating last_modified
- introduced in previos commit
(cherry picked from commit 767c2bc60f7f5a601118329df2c16b2646dbb58f)
---
Modified: modules/usrloc/ucontact.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bff4e99d81353dbf02e0a6f609f7622…
Patch:
https://github.com/kamailio/kamailio/commit/bff4e99d81353dbf02e0a6f609f7622…
---
diff --git a/modules/usrloc/ucontact.c b/modules/usrloc/ucontact.c
index b0cbb28..cc1c2e5 100644
--- a/modules/usrloc/ucontact.c
+++ b/modules/usrloc/ucontact.c
@@ -827,7 +827,7 @@ int db_update_ucontact_addr(ucontact_t* _c)
keys2[nr_cols2] = &last_mod_col;
vals2[nr_cols2].nul = 0;
- vals2[nr_cols2].val = _c->last_modified;
+ UL_DB_EXPIRES_SET(&vals2[nr_cols2], _c->last_modified);
nr_cols2++;
keys2[nr_cols2] = &ruid_col;