[sr-dev] git:4.2: dialog: proper de-serialization of expires value for a profile

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 16 01:08:42 CEST 2014


Module: sip-router
Branch: 4.2
Commit: 78a5d5d1f1cb8c59b5ff64d7df9c6ecd1634fcf8
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=78a5d5d1f1cb8c59b5ff64d7df9c6ecd1634fcf8

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Oct 16 01:03:54 2014 +0200

dialog: proper de-serialization of expires value for a profile

(cherry picked from commit ab9d9a242ec60b820496794953610a84b303d2f3)

---

 modules/dialog/dlg_profile.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/dialog/dlg_profile.c b/modules/dialog/dlg_profile.c
index 69f1788..b355ad5 100644
--- a/modules/dialog/dlg_profile.c
+++ b/modules/dialog/dlg_profile.c
@@ -1257,8 +1257,8 @@ int dlg_json_to_profiles(dlg_cell_t *dlg, srjson_doc_t *jdoc)
 					val.len = strlen(val.s);
 				} else if(strcmp(jt->string, "puid")==0) {
 					puid.s = jt->valuestring;
-					puid.len = strlen(val.s);
-				} else if(strcmp(jt->string, "puid")==0) {
+					puid.len = strlen(puid.s);
+				} else if(strcmp(jt->string, "expires")==0) {
 					expires = (time_t)jt->valueint;
 				} else if(strcmp(jt->string, "flags")==0) {
 					flags = jt->valueint;




More information about the sr-dev mailing list