summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2016-05-01 10:49:17 -0300
committerJorge Arellano Cid <jcid@dillo.org>2016-05-01 10:49:17 -0300
commit6ae151b53be4cbbe32d5a067f8d649e36932525c (patch)
tree7eccc8525033aed73def2f27970623903f06041a
parent18f07c8e52b2f1445a9e8ddcef98a85c106e0e7c (diff)
Fixed a minor code glitch in test/ directory (same as #4536)
-rw-r--r--test/cookies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cookies.c b/test/cookies.c
index fe1f543f..eaa0f59d 100644
--- a/test/cookies.c
+++ b/test/cookies.c
@@ -423,7 +423,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");
}
Dpi_close_fd(sock_fd);