MSGFW_MMS_MULTIPART_TABLE_NAME);
if (dbHandle->prepareQuery(sqlQuery) != MSG_SUCCESS) {
+ err = MSG_ERR_DB_PREPARE;
dbHandle->endTrans(false);
- return MSG_ERR_DB_PREPARE;
+ goto FREE_MEMORY;
}
while (dbHandle->stepQuery() == MSG_ERR_DB_ROW) {
if (dbHandle->prepareQuery(sqlQuery) != MSG_SUCCESS) {
dbHandle->endTrans(false);
- return MSG_ERR_DB_PREPARE;
+ err = MSG_ERR_DB_PREPARE;
+
+ goto FREE_MEMORY;
}
while (dbHandle->stepQuery() == MSG_ERR_DB_ROW) {
/* Create thread for noti and phone log delete. */
if (!bOnlyDB) {
- if (pToDeleteMsgIdList->nCount > 0) {
- /* memory free */
- if (pToDeleteMsgIdList != NULL) {
- /*free peer info list */
- if (pToDeleteMsgIdList->msgIdList != NULL)
- delete [] pToDeleteMsgIdList->msgIdList;
-
- delete [] pToDeleteMsgIdList;
- }
-
+ if (pToDeleteMsgIdList->nCount > 0)
MsgRefreshAllNotification(true, false, MSG_ACTIVE_NOTI_TYPE_NONE);
- }
+ }
+
+ /* memory free */
+ if (pToDeleteMsgIdList != NULL) {
+ /*free peer info list */
+ if (pToDeleteMsgIdList->msgIdList != NULL)
+ delete [] pToDeleteMsgIdList->msgIdList;
+
+ delete [] pToDeleteMsgIdList;
}
return MSG_SUCCESS;
MsgTransactionManager::MsgTransactionManager() : running(false), mx(), mxQ(), cv(), eventQueue()
{
+ p_cynara = NULL;
+ client_method = CLIENT_METHOD_DEFAULT;
+ user_method = USER_METHOD_DEFAULT;
+
sentMsgMap.clear();
statusCBFdMap.clear();
newMsgCBList.clear();
notification_h noti_h = NULL;
bool isNewNoti = false;
- report_notification_s *info = new report_notification_s;
- memset(info, 0x00, sizeof(report_notification_s));
-
MSG_MGR_NOTI_INFO_S noti_info = {0, };
noti_info.type = noti_type;
}
}
- info->priv_id = noti_info.id;
- snprintf(info->addressVal, sizeof(info->addressVal), "%s", msg_info->addressVal);
- msg_report_notification_list = g_list_append(msg_report_notification_list, (void *)info);
- MSG_MGR_SEC_DEBUG("appended list data = [priv_id = %d address = %s]", info->priv_id, info->addressVal);
-
__END_OF_ADD_REPORT_NOTI :
clearInfoData(noti_h, ¬i_info);
case MMS_CODE_FROM:
+ if (mmsHeader.pFrom != NULL) {
+ MSG_DEBUG("MMS_CODE_FROM is already decoded");
+ goto __CATCH;
+ }
+
/* Value-length (Address-present-token Encoded-string-value | Insert-address-token) */
if (__MmsDecodeValueLength(pFile, &valueLength, totalLength) <= 0) {
length = __MmsBinaryEncodeTextStringLen((UINT8*)pszName);
+ g_free(pszName);
+
if (length == -1) {
MSG_DEBUG("szName MmsBinaryEncodeIntegerLen fail");
goto __CATCH;
}
- g_free(pszName);
-
totalLength += (length + 1);
}
}
ret = csr_cs_scan_file(csr_handle, filepath, &detected);
if (ret == CSR_ERROR_NONE) {
if (detected) {
- csr_cs_severity_level_e severity;
+ csr_cs_severity_level_e severity = CSR_CS_SEVERITY_LOW;
char *name = NULL;
ret = csr_cs_malware_get_severity(detected, &severity);