From: Christian Babeux Date: Fri, 10 Aug 2012 17:22:52 +0000 (-0400) Subject: Fix: Wrong domain used when initializing IPv6 sockets X-Git-Tag: v2.1.0-rc1~32 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7b43086dc8feb11d94e14b73db197eb178be7b50;p=lttng-tools.git Fix: Wrong domain used when initializing IPv6 sockets Signed-off-by: Christian Babeux Signed-off-by: David Goulet --- diff --git a/src/common/sessiond-comm/inet6.c b/src/common/sessiond-comm/inet6.c index 0d96c31c2..98aba0430 100644 --- a/src/common/sessiond-comm/inet6.c +++ b/src/common/sessiond-comm/inet6.c @@ -52,7 +52,7 @@ int lttcomm_create_inet6_sock(struct lttcomm_sock *sock, int type, int proto) int val = 1, ret; /* Create server socket */ - if ((sock->fd = socket(PF_INET, type, proto)) < 0) { + if ((sock->fd = socket(PF_INET6, type, proto)) < 0) { PERROR("socket inet6"); goto error; }