From: deraadt Date: Sun, 5 May 1996 16:15:28 +0000 (+0000) Subject: from netbsd: X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3e225dc35f1219676faf4e955007aaace1160d74;p=openbsd from netbsd: second argument to xdr_long must be a "long *", which means that the 'out' arg to svc_sendreply must point to a long if outproc is xdr_long. It was pointing to an 'int', and that was crashing on the alpha, due to bad alignment. --- diff --git a/usr.sbin/portmap/portmap.c b/usr.sbin/portmap/portmap.c index facd27e8b1f..fadd1ac569e 100644 --- a/usr.sbin/portmap/portmap.c +++ b/usr.sbin/portmap/portmap.c @@ -39,7 +39,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.1.1.1 1995/10/18 08:47:57 deraadt Exp $"; +static char rcsid[] = "$Id: portmap.c,v 1.2 1996/05/05 16:15:28 deraadt Exp $"; #endif /* not lint */ /* @@ -230,7 +230,7 @@ reg_service(rqstp, xprt) { struct pmap reg; struct pmaplist *pml, *prevpml, *fnd; - int ans, port; + long ans, port; caddr_t t; if (debugging)