aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-echo.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mds-echo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mds-echo.c b/src/mds-echo.c
index 4295816..82acc34 100644
--- a/src/mds-echo.c
+++ b/src/mds-echo.c
@@ -184,7 +184,10 @@ int unmarshal_server(char* state_buf)
buf_get_next(state_buf, int32_t, message_id);
r = mds_message_unmarshal(&received, state_buf);
if (r)
- mds_message_destroy(&received);
+ {
+ perror(*argv);
+ mds_message_destroy(&received);
+ }
return r;
}