diff options
author | 1996-07-07 20:15:10 +0000 | |
---|---|---|
committer | 1996-07-07 20:15:10 +0000 | |
commit | 9430a6aefca1509dc91a1d2ffb7fc89188b6104a (patch) | |
tree | 92b30dc5b538ab1d9ff40b456d34361edd0bf171 | |
parent | do multi-include protection. (diff) | |
download | wireguard-openbsd-9430a6aefca1509dc91a1d2ffb7fc89188b6104a.tar.xz wireguard-openbsd-9430a6aefca1509dc91a1d2ffb7fc89188b6104a.zip |
call inet_ntoa correctly, from wietse
-rw-r--r-- | usr.sbin/portmap/portmap.c | 6 |
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; } |