summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/xdr_array.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_array.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_array.c')
-rw-r--r--lib/libc/rpc/xdr_array.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/rpc/xdr_array.c b/lib/libc/rpc/xdr_array.c
index 43e9ebea534..f24847e07d8 100644
--- a/lib/libc/rpc/xdr_array.c
+++ b/lib/libc/rpc/xdr_array.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xdr_array.c,v 1.10 2010/09/01 14:43:34 millert Exp $ */
+/* $OpenBSD: xdr_array.c,v 1.11 2015/09/01 19:54:01 deraadt Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -86,11 +86,8 @@ xdr_array(XDR *xdrs,
if (c == 0)
return (TRUE);
*addrp = target = mem_alloc(nodesize);
- if (target == NULL) {
- (void) fprintf(stderr,
- "xdr_array: out of memory\n");
+ if (target == NULL)
return (FALSE);
- }
memset(target, 0, nodesize);
break;
case XDR_FREE: