diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-06-01 05:22:09 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-06-01 05:22:09 +0000 |
commit | 5762d10e609a1e801ff59eef0bdcbbf97f43e23c (patch) | |
tree | 8b0845d3cea92f04bcd1434e9aab66df6b012b30 | |
parent | 98ff0b975966dd364e0ac65ea69a47428f4cb30d (diff) |
A few minor changes from tcp_wrappers 7.6
-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 */ } |