Modify MsgHandle::write for prevent.
authorKeebum Kim <keebum.kim@samsung.com>
Sat, 12 Jan 2013 06:16:10 +0000 (15:16 +0900)
committerKeebum Kim <keebum.kim@samsung.com>
Sat, 12 Jan 2013 06:16:10 +0000 (15:16 +0900)
proxy/MsgHandleControl.cpp

index 5e9bc14..756ce37 100755 (executable)
@@ -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");
        }
+
 }