diff options
author | 1997-06-01 05:22:08 +0000 | |
---|---|---|
committer | 1997-06-01 05:22:08 +0000 | |
commit | a0bbebca169fa344a7dfe409ed367b6e0bde6e95 (patch) | |
tree | e8543dd80b22431352d6f86a79807f68f0fdb7d2 /lib/libwrap/socket.c | |
parent | A few changed from tcp_wrappers 7.6 (diff) | |
download | wireguard-openbsd-a0bbebca169fa344a7dfe409ed367b6e0bde6e95.tar.xz wireguard-openbsd-a0bbebca169fa344a7dfe409ed367b6e0bde6e95.zip |
A few minor changes from tcp_wrappers 7.6
Diffstat (limited to 'lib/libwrap/socket.c')
-rw-r--r-- | lib/libwrap/socket.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libwrap/socket.c b/lib/libwrap/socket.c index f1c9795a8b4..ac6e1367f26 100644 --- a/lib/libwrap/socket.c +++ b/lib/libwrap/socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: socket.c,v 1.1 1997/02/26 03:06:58 downsj Exp $ */ +/* $OpenBSD: socket.c,v 1.2 1997/06/01 05:22:08 downsj Exp $ */ /* * This module determines the type of socket (datagram, stream), the client @@ -19,9 +19,9 @@ #ifndef lint #if 0 -static char sccsid[] = "@(#) socket.c 1.14 95/01/30 19:51:50"; +static char sccsid[] = "@(#) socket.c 1.15 97/03/21 19:27:24"; #else -static char rcsid[] = "$OpenBSD: socket.c,v 1.1 1997/02/26 03:06:58 downsj Exp $"; +static char rcsid[] = "$OpenBSD: socket.c,v 1.2 1997/06/01 05:22:08 downsj Exp $"; #endif #endif @@ -190,8 +190,8 @@ struct host_info *host; * problem. It could also be that someone is trying to spoof us. */ - tcpd_warn("host name/name mismatch: %s != %s", - host->name, hp->h_name); + tcpd_warn("host name/name mismatch: %s != %.*s", + host->name, STRING_LENGTH, hp->h_name); } else { @@ -215,8 +215,8 @@ struct host_info *host; * server. */ - tcpd_warn("host name/address mismatch: %s != %s", - inet_ntoa(sin->sin_addr), hp->h_name); + tcpd_warn("host name/address mismatch: %s != %.*s", + inet_ntoa(sin->sin_addr), STRING_LENGTH, hp->h_name); } strcpy(host->name, paranoid); /* name is bad, clobber it */ } |