]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 65898338cd30b0b2ba4a503a913c44a0fca2d449..8b550391294724741a86c0272f37fa1d2add7c1c 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);
        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();
                goto err_out;
        /* get new socket */
        ret = get_socket();