summaryrefslogtreecommitdiff
path: root/usr.sbin/portmap/portmap.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-07 20:15:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-07-07 20:15:11 +0000
commitcef925802119f03153092b228ff9a4fd81fe0b99 (patch)
treed581916b2f83f91a6e92bc4fcf30e704a50d382b /usr.sbin/portmap/portmap.c
parent55201f1fdb7b7faa0f04eb9eecf90945e9969690 (diff)
call inet_ntoa correctly, from wietse
Diffstat (limited to 'usr.sbin/portmap/portmap.c')
-rw-r--r--usr.sbin/portmap/portmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/portmap/portmap.c b/usr.sbin/portmap/portmap.c
index 8ed64813355..1539bd9411e 100644
--- a/usr.sbin/portmap/portmap.c
+++ b/usr.sbin/portmap/portmap.c
@@ -40,7 +40,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)portmap.c 5.4 (Berkeley) 4/19/91";*/
-static char rcsid[] = "$Id: portmap.c,v 1.4 1996/07/01 00:35:05 deraadt Exp $";
+static char rcsid[] = "$Id: portmap.c,v 1.5 1996/07/07 20:15:10 deraadt Exp $";
#endif /* not lint */
/*
@@ -302,7 +302,7 @@ reg_service(rqstp, xprt)
if (xprt != ltcpxprt && xprt != ludpxprt) {
syslog(LOG_WARNING,
"non-local set attempt (might be from %s)",
- inet_ntoa(fromsin));
+ inet_ntoa(fromsin->sin_addr));
svcerr_noproc(xprt);
return;
}
@@ -361,7 +361,7 @@ reg_service(rqstp, xprt)
if (xprt != ltcpxprt && xprt != ludpxprt) {
syslog(LOG_WARNING,
"non-local unset attempt (might be from %s)",
- inet_ntoa(fromsin));
+ inet_ntoa(fromsin->sin_addr));
svcerr_noproc(xprt);
return;
}