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

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


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

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

---

 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