From: Roy Marples Date: Thu, 13 Feb 2014 13:14:58 +0000 (+0000) Subject: Open right socket. X-Git-Tag: v6.3.0~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0a4adaf6ac52b27695f0c571d2a8671ed182659;p=thirdparty%2Fdhcpcd.git Open right socket. --- diff --git a/dhcp.c b/dhcp.c index 6a10b781..56547fe3 100644 --- a/dhcp.c +++ b/dhcp.c @@ -1364,7 +1364,7 @@ dhcp_openudp(struct dhcpcd_ctx *ctx, struct interface *ifp) if ((s = socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, IPPROTO_UDP)) == -1) return -1; #else - if ((s = socket(PF_INET6, SOCK_DGRAM, IPPROTO_UDP)) == -1) + if ((s = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1) return -1; if ((n = fcntl(s, F_GETFD, 0)) == -1 || fcntl(s, F_SETFD, n | FD_CLOEXEC) == -1)