X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=http_recv.c;h=3078c5fdf13a67599c65bc3b0c3fac4e8da4053f;hp=035d1f1908f9f176689fb5a51501d8b788372c17;hb=9148b53eb42dc52ed52cbc3540a26815f333238b;hpb=e7e55d0ad711a46e4768066be197bb41caa5c5eb diff --git a/http_recv.c b/http_recv.c index 035d1f19..3078c5fd 100644 --- a/http_recv.c +++ b/http_recv.c @@ -165,8 +165,8 @@ static int http_recv_open(struct receiver_node *rn) { struct private_http_recv_data *phd; struct http_recv_args_info *conf = rn->conf; - int fd, ret = makesock(AF_UNSPEC, IPPROTO_TCP, 0, conf->host_arg, - conf->port_arg); + int fd, ret = para_connect_simple(IPPROTO_TCP, conf->host_arg, + conf->port_arg); if (ret < 0) return ret; @@ -186,6 +186,7 @@ static int http_recv_open(struct receiver_node *rn) static void http_recv_free_config(void *conf) { http_recv_cmdline_parser_free(conf); + free(conf); } /**