aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/tcp.c')
-rw-r--r--usr.sbin/ppp/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/tcp.c b/usr.sbin/ppp/tcp.c
index 567072a665e0..5a66251a0c24 100644
--- a/usr.sbin/ppp/tcp.c
+++ b/usr.sbin/ppp/tcp.c
@@ -84,7 +84,7 @@ tcp_OpenConnection(const char *name, char *host, char *port)
}
log_Printf(LogPHASE, "%s: Connecting to %s:%s/tcp\n", name, host, port);
- sock = socket(PF_INET, SOCK_STREAM, 0);
+ sock = socket(AF_INET, SOCK_STREAM, 0);
if (sock < 0)
return -2;