summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/auth_unix.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-01-02 23:00:10 +0000
committerderaadt <deraadt@openbsd.org>2002-01-02 23:00:10 +0000
commit5ae9a25e5f9c19a31079ee381cacdfa83676449e (patch)
treea957a795ec700c2eb10122070c8c5a0258aaa7d4 /lib/libc/rpc/auth_unix.c
parentat least ; required after label or case; openbsd@davidkrause.com (diff)
downloadwireguard-openbsd-5ae9a25e5f9c19a31079ee381cacdfa83676449e.tar.xz
wireguard-openbsd-5ae9a25e5f9c19a31079ee381cacdfa83676449e.zip
label abort() from inside library as ILLEGAL
Diffstat (limited to 'lib/libc/rpc/auth_unix.c')
-rw-r--r--lib/libc/rpc/auth_unix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/rpc/auth_unix.c b/lib/libc/rpc/auth_unix.c
index b4f0c9448de..7b55938d379 100644
--- a/lib/libc/rpc/auth_unix.c
+++ b/lib/libc/rpc/auth_unix.c
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: auth_unix.c,v 1.14 2001/09/15 13:51:00 deraadt Exp $";
+static char *rcsid = "$OpenBSD: auth_unix.c,v 1.15 2002/01/02 23:00:10 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -143,8 +143,8 @@ authunix_create(machname, uid, gid, len, aup_gids)
* Serialize the parameters into origcred
*/
xdrmem_create(&xdrs, mymem, MAX_AUTH_BYTES, XDR_ENCODE);
- if (! xdr_authunix_parms(&xdrs, &aup))
- abort();
+ if (!xdr_authunix_parms(&xdrs, &aup))
+ abort(); /* XXX abort illegal in library */
au->au_origcred.oa_length = len = XDR_GETPOS(&xdrs);
au->au_origcred.oa_flavor = AUTH_UNIX;
#ifdef KERNEL