Ensure alignment of the structure used for RPC requests. This stop
"ypbind" from segfaulting under NetBSD-sparc64 when "ypwhich" is used to display the current NIS server.
This commit is contained in:
parent
eae4b7db79
commit
886853e55b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ypbind.c,v 1.55 2006/10/01 19:43:15 elad Exp $ */
|
||||
/* $NetBSD: ypbind.c,v 1.56 2006/10/05 09:18:11 tron Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@fsa.ca>
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef LINT
|
||||
__RCSID("$NetBSD: ypbind.c,v 1.55 2006/10/01 19:43:15 elad Exp $");
|
||||
__RCSID("$NetBSD: ypbind.c,v 1.56 2006/10/05 09:18:11 tron Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -395,6 +395,7 @@ ypbindprog_2(struct svc_req *rqstp, register SVCXPRT *transp)
|
||||
union {
|
||||
char ypbindproc_domain_2_arg[YPMAXDOMAIN + 1];
|
||||
struct ypbind_setdom ypbindproc_setdom_2_arg;
|
||||
void *alignment;
|
||||
} argument;
|
||||
struct authunix_parms *creds;
|
||||
char *result;
|
||||
|
Loading…
Reference in New Issue
Block a user