From 8f55ddd74fadb637a400e0ec4d0f2714dfb41804 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 17 Dec 2008 02:38:45 +0100 Subject: [PATCH] Fixed socktype bug in sendreq. --- lib/req.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/req.c b/lib/req.c index da367a3..2671159 100644 --- a/lib/req.c +++ b/lib/req.c @@ -116,7 +116,7 @@ int sendreq(int sock, struct hthead *req) int pfds[2]; struct charbuf buf; - if(socketpair(PF_UNIX, SOCK_DGRAM, 0, pfds)) + if(socketpair(PF_UNIX, SOCK_STREAM, 0, pfds)) return(-1); bufinit(buf); bufcatstr2(buf, req->method); -- 2.11.0