projects
/
framework
/
messaging
/
msg-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81b0f08
)
Modify MsgHandle::write for prevent.
author
Keebum Kim
<keebum.kim@samsung.com>
Sat, 12 Jan 2013 06:16:10 +0000
(15:16 +0900)
committer
Keebum Kim
<keebum.kim@samsung.com>
Sat, 12 Jan 2013 06:16:10 +0000
(15:16 +0900)
proxy/MsgHandleControl.cpp
patch
|
blob
|
history
diff --git
a/proxy/MsgHandleControl.cpp
b/proxy/MsgHandleControl.cpp
index
5e9bc14
..
756ce37
100755
(executable)
--- a/
proxy/MsgHandleControl.cpp
+++ b/
proxy/MsgHandleControl.cpp
@@
-119,17
+119,13
@@
void MsgHandle::write(const char *pCmdData, int cmdSize, char **ppEvent)
if (ret < 0)
THROW(MsgException::IPC_ERROR, "IPC write error");
- while(1)
- {
- // Receive Result from MSG FW
- read(ppEvent);
+ // Receive Result from MSG FW
+ read(ppEvent);
- if(!CheckEventData(*ppEvent)) {
- delete [] (*ppEvent);
- } else {
- break;
- }
+ if (*ppEvent == NULL) {
+ THROW(MsgException::INVALID_RESULT, "event is NULL");
}
+
}