summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/xdr_reference.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-09-01 19:54:00 +0000
committerderaadt <deraadt@openbsd.org>2015-09-01 19:54:00 +0000
commit137e52c28d0b3c8593db2d083b101b18dc53addb (patch)
tree59850bcd88a21799817060c1cece5e0e853894c1 /lib/libc/rpc/xdr_reference.c
parentDisplay the correct source address when using a non-default routing (diff)
downloadwireguard-openbsd-137e52c28d0b3c8593db2d083b101b18dc53addb.tar.xz
wireguard-openbsd-137e52c28d0b3c8593db2d083b101b18dc53addb.zip
Remove all bogus writes to stderr. Only explicit requests should
go that way. ok miod beck
Diffstat (limited to 'lib/libc/rpc/xdr_reference.c')
-rw-r--r--lib/libc/rpc/xdr_reference.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/rpc/xdr_reference.c b/lib/libc/rpc/xdr_reference.c
index ae49864e44b..a5f7594bbc9 100644
--- a/lib/libc/rpc/xdr_reference.c
+++ b/lib/libc/rpc/xdr_reference.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xdr_reference.c,v 1.9 2010/09/01 14:43:34 millert Exp $ */
+/* $OpenBSD: xdr_reference.c,v 1.10 2015/09/01 19:54:01 deraadt Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -69,11 +69,8 @@ xdr_reference(XDR *xdrs,
case XDR_DECODE:
*pp = loc = (caddr_t) calloc(size, 1);
- if (loc == NULL) {
- (void) fprintf(stderr,
- "xdr_reference: out of memory\n");
+ if (loc == NULL)
return (FALSE);
- }
break;
}