From 28da35fa4784f98854dbbe5d9e317bcafc16e8f0 Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Mon, 1 Sep 2014 15:11:44 +0600 Subject: pppoe, pptp: fix socket type for checking --- accel-pppd/ctrl/pptp/pptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd/ctrl/pptp') diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c index 92770bf..f447aa7 100644 --- a/accel-pppd/ctrl/pptp/pptp.c +++ b/accel-pppd/ctrl/pptp/pptp.c @@ -771,7 +771,7 @@ static void pptp_init(void) char *opt; int fd; - fd = socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_PPTP); + fd = socket(AF_PPPOX, SOCK_STREAM, PX_PROTO_PPTP); if (fd >= 0) close(fd); else if (system("modprobe -q pptp")) -- cgit v1.2.3