Fix error message, as reported in lib/15711 by Onno van der Linden.

This commit is contained in:
wiz 2002-02-23 23:28:31 +00:00
parent 63b308a593
commit d70fe2e86c

View File

@ -1,4 +1,4 @@
/* $NetBSD: fix_options.c,v 1.6 2000/07/26 14:59:06 itojun Exp $ */
/* $NetBSD: fix_options.c,v 1.7 2002/02/23 23:28:31 wiz Exp $ */
/*
* Routine to disable IP-level socket options. This code was taken from 4.4BSD
@ -12,7 +12,7 @@
#if 0
static char sccsid[] = "@(#) fix_options.c 1.6 97/04/08 02:29:19";
#else
__RCSID("$NetBSD: fix_options.c,v 1.6 2000/07/26 14:59:06 itojun Exp $");
__RCSID("$NetBSD: fix_options.c,v 1.7 2002/02/23 23:28:31 wiz Exp $");
#endif
#endif
@ -62,7 +62,7 @@ struct request_info *request;
*/
sslen = sizeof(ss);
if (getsockname(fd, (struct sockaddr *)&ss, &sslen) < 0) {
syslog(LOG_ERR, "getpeername: %m");
syslog(LOG_ERR, "getsockname: %m");
clean_exit(request);
}
if (ss.ss_family != AF_INET)