]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - http_recv.c
web: replace <pre> by <p>
[paraslash.git] / http_recv.c
index d2b34c4ba71befb9318d49f20aab662e6ab05703..3d72c7c7396ca3b8f96f63653aec9c021cb90846 100644 (file)
@@ -185,8 +185,8 @@ static int http_recv_open(struct receiver_node *rn)
        rn->private_data = para_calloc(sizeof(struct private_http_recv_data));
        phd = rn->private_data;
        PARA_NOTICE_LOG("phd = %p, rn = %p\n", phd, rn);
-       ret = -E_HOST_INFO;
-       if (!(he = get_host_info(conf->host_arg)))
+       ret = get_host_info(conf->host_arg, &he);
+       if (!ret < 0)
                goto err_out;
        /* get new socket */
        ret = -E_SOCKET;