diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2016-04-30 22:09:47 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2016-04-30 22:09:47 -0300 |
commit | dbca574c6055a4e245fd5381bd7e88ef89612acf (patch) | |
tree | e4b181983c1cca5dfba80a153ab8fed8eca0cc6e /src | |
parent | 71d3d04e5abd52ba79f08453bd0e209c61b9523d (diff) |
Fixed a minor bug for a corner case in dpi cookie handling
Diffstat (limited to 'src')
-rw-r--r-- | src/IO/dpi.c | 2 |
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); |