diff options
author | 1999-12-30 16:31:01 +0000 | |
---|---|---|
committer | 1999-12-30 16:31:01 +0000 | |
commit | faf8774190a3dc78dcf797119944e61c605797c6 (patch) | |
tree | 77e57e153be058049f01a8246ba580f66eeeec03 | |
parent | enable KAME scopeid hack (print link-local addresses with scope identifier (diff) | |
download | wireguard-openbsd-faf8774190a3dc78dcf797119944e61c605797c6.tar.xz wireguard-openbsd-faf8774190a3dc78dcf797119944e61c605797c6.zip |
correct connect() call
-rw-r--r-- | usr.sbin/faithd/faithd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/faithd/faithd.c b/usr.sbin/faithd/faithd.c index 74326156381..3dc0e0c547f 100644 --- a/usr.sbin/faithd/faithd.c +++ b/usr.sbin/faithd/faithd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: faithd.c,v 1.2 1999/12/20 16:32:53 itojun Exp $ */ +/* $OpenBSD: faithd.c,v 1.3 1999/12/30 16:31:01 deraadt Exp $ */ /* * Copyright (C) 1997 and 1998 WIDE Project. @@ -463,7 +463,7 @@ play_child(int s_src, struct sockaddr *srcaddr) if (error == -1) exit_error("setsockopt(SO_SNDTIMEO): %s", ERRSTR); - error = connect(s_dst, sa4, sa4->sa_family); + error = connect(s_dst, sa4, sa4->sa_len); if (error == -1) exit_failure("connect: %s", ERRSTR); |