http_recv.c: Fix typo in http_recv_open()
authorAndre Noll <maan@systemlinux.org>
Mon, 19 Feb 2007 21:06:06 +0000 (22:06 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 19 Feb 2007 21:06:06 +0000 (22:06 +0100)
Quite serious as it causes the http receiver not to error
out if get_host_info() fails.

http_recv.c

index 6589833..8b55039 100644 (file)
@@ -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();