diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-12-30 16:31:02 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-12-30 16:31:02 +0000 |
commit | 78e135615d11106261f2dd00723b616dd739befc (patch) | |
tree | d0b355d42e2687dd3253aa0dad65d25f2e7f6a99 /usr.sbin/faithd | |
parent | 9d09b2f95b51a07cf238173fba7ecc45415116e5 (diff) |
correct connect() call
Diffstat (limited to 'usr.sbin/faithd')
-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); |