diff options
author | Kyeonghun Lee <kh9090.lee@samsung.com> | 2016-12-27 15:24:44 +0900 |
---|---|---|
committer | Kyeonghun Lee <kh9090.lee@samsung.com> | 2016-12-27 15:31:19 +0900 |
commit | e5fd53692a4ae0115cb2feb2d4585b032caa8edd (patch) | |
tree | 26ace8d10e0bbffc40f86f670e388f740c47afc2 | |
parent | c206ac44104319d6728a75e64c684c4901cca158 (diff) | |
download | msg-service-e5fd53692a4ae0115cb2feb2d4585b032caa8edd.tar.gz msg-service-e5fd53692a4ae0115cb2feb2d4585b032caa8edd.tar.bz2 msg-service-e5fd53692a4ae0115cb2feb2d4585b032caa8edd.zip |
fix error on receiving mms while dpm disallowedsubmit/tizen_3.0/20161227.064027accepted/tizen/3.0/wearable/20161228.091302accepted/tizen/3.0/mobile/20161228.091237accepted/tizen/3.0/ivi/20161228.091322accepted/tizen/3.0/common/20161228.162157
Change-Id: I8def211b743851d0003b9c7ec35fe71e3ffea715
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
-rwxr-xr-x | framework/deliver-handler/MsgDeliverHandler.cpp | 1 | ||||
-rwxr-xr-x | plugin/mms_plugin/MmsPluginMain.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/framework/deliver-handler/MsgDeliverHandler.cpp b/framework/deliver-handler/MsgDeliverHandler.cpp index 0674164..b2e79e0 100755 --- a/framework/deliver-handler/MsgDeliverHandler.cpp +++ b/framework/deliver-handler/MsgDeliverHandler.cpp @@ -596,7 +596,6 @@ msg_error_t MsgHandleMMS(MSG_MESSAGE_INFO_S *pMsgInfo, bool *pSendNoti) if (msg_check_dpm_policy(pMsgInfo->msgType.mainType) == false) { MSG_DEBUG("Messaging is restricted by DPM policy."); pMsgInfo->bRestricted = true; - *pSendNoti = false; } err = MsgStoAddMessage(pMsgInfo, NULL); diff --git a/plugin/mms_plugin/MmsPluginMain.cpp b/plugin/mms_plugin/MmsPluginMain.cpp index 25f5d59..9f1a33c 100755 --- a/plugin/mms_plugin/MmsPluginMain.cpp +++ b/plugin/mms_plugin/MmsPluginMain.cpp @@ -114,7 +114,7 @@ msg_error_t MmsSubmitRequest(MSG_REQUEST_INFO_S *pReqInfo) MSG_BEGIN(); try { - if (msg_check_dpm_policy(pReqInfo->msgInfo.msgType.mainType) == false) { + if (pReqInfo->msgInfo.msgType.subType != MSG_GET_MMS && msg_check_dpm_policy(pReqInfo->msgInfo.msgType.mainType) == false) { MSG_DEBUG("Messaging is restricted by DPM policy."); return MSG_ERR_DPM_RESTRICT; } |