diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-10-08 02:53:55 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-10-08 02:53:55 +0000 |
commit | 3a9444bfea15e852014c92f0d6b0abbd276c17f1 (patch) | |
tree | 1efa1b3ee6def77c70b002de97a8f1298696b13c /libexec/talkd/talkd.c | |
parent | 746983e17470e51bb805d359d5321ebc2883a980 (diff) |
sa_family on wire is network byteorder. from Alexander Yurchenko <grange@rt.mipt.ru>
Diffstat (limited to 'libexec/talkd/talkd.c')
-rw-r--r-- | libexec/talkd/talkd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/talkd/talkd.c b/libexec/talkd/talkd.c index 5b737c085ba..d11a9880be1 100644 --- a/libexec/talkd/talkd.c +++ b/libexec/talkd/talkd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: talkd.c,v 1.15 2002/09/25 03:43:20 itojun Exp $ */ +/* $OpenBSD: talkd.c,v 1.16 2002/10/08 02:53:54 itojun Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)talkd.c 5.8 (Berkeley) 2/26/91";*/ -static char rcsid[] = "$Id: talkd.c,v 1.15 2002/09/25 03:43:20 itojun Exp $"; +static char rcsid[] = "$Id: talkd.c,v 1.16 2002/10/08 02:53:54 itojun Exp $"; #endif /* not lint */ /* @@ -121,7 +121,7 @@ main(argc, argv) request.r_tty[sizeof(request.r_tty) - 1] = '\0'; memcpy(&ctl_addr, &request.ctl_addr, sizeof(ctl_addr)); - ctl_addr.sa_family = request.ctl_addr.sa_family; + ctl_addr.sa_family = ntohs(request.ctl_addr.sa_family); ctl_addr.sa_len = sizeof(ctl_addr); if (ctl_addr.sa_family != AF_INET) continue; |