소스 검색

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

(cherry picked from commit ab9d9a242ec60b820496794953610a84b303d2f3)
Daniel-Constantin Mierla 11 년 전
부모
커밋
78a5d5d1f1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      modules/dialog/dlg_profile.c

+ 2 - 2
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;