aboutsummaryrefslogtreecommitdiffstats
path: root/remote-process/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'remote-process/main.cpp')
-rw-r--r--remote-process/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/remote-process/main.cpp b/remote-process/main.cpp
index 85514ca..bcf825b 100644
--- a/remote-process/main.cpp
+++ b/remote-process/main.cpp
@@ -100,7 +100,8 @@ bool sendAndDisplayCommand(CConnectionSocket &connectionSocket, CRequestMessage
{
string strError;
- if (!requestMessage.serialize(&connectionSocket, true, strError)) {
+ if (requestMessage.serialize(&connectionSocket, true, strError)
+ != CRequestMessage::success) {
cerr << "Unable to send command to target: " << strError << endl;
return false;
@@ -108,7 +109,8 @@ bool sendAndDisplayCommand(CConnectionSocket &connectionSocket, CRequestMessage
///// Get answer
CAnswerMessage answerMessage;
- if (!answerMessage.serialize(&connectionSocket, false, strError)) {
+ if (answerMessage.serialize(&connectionSocket, false, strError)
+ != CRequestMessage::success) {
cerr << "Unable to received answer from target: " << strError << endl;
return false;