From 283b4595c7c7d35d2dbd5040bdb36366807d2579 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 19 Feb 2007 22:06:06 +0100 Subject: [PATCH] http_recv.c: Fix typo in http_recv_open() Quite serious as it causes the http receiver not to error out if get_host_info() fails. --- http_recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_recv.c b/http_recv.c index 65898338..8b550391 100644 --- a/http_recv.c +++ b/http_recv.c @@ -185,7 +185,7 @@ static int http_recv_open(struct receiver_node *rn) rn->private_data = para_calloc(sizeof(struct private_http_recv_data)); phd = rn->private_data; ret = get_host_info(conf->host_arg, &he); - if (!ret < 0) + if (ret < 0) goto err_out; /* get new socket */ ret = get_socket(); -- 2.39.5