From: Andre Noll Date: Mon, 19 Feb 2007 21:06:06 +0000 (+0100) Subject: http_recv.c: Fix typo in http_recv_open() X-Git-Tag: v0.2.16~76^2~9 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=283b4595c7c7d35d2dbd5040bdb36366807d2579;p=paraslash.git 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. --- 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();