aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/IO/dpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/IO/dpi.c b/src/IO/dpi.c
index c99bb3f0..1948b0ee 100644
--- a/src/IO/dpi.c
+++ b/src/IO/dpi.c
@@ -780,7 +780,7 @@ char *a_Dpi_send_blocking_cmd(const char *server_name, const char *cmd)
MSG_ERR("[a_Dpi_send_blocking_cmd] Can't connect to server.\n");
} else if (Dpi_blocking_write(sock_fd, cmd, strlen(cmd)) == -1) {
MSG_ERR("[a_Dpi_send_blocking_cmd] Can't send message.\n");
- } if ((ret = Dpi_blocking_read(sock_fd)) == NULL) {
+ } else if ((ret = Dpi_blocking_read(sock_fd)) == NULL) {
MSG_ERR("[a_Dpi_send_blocking_cmd] Can't read message.\n");
}
dClose(sock_fd);