diff options
author | 2015-09-01 19:54:00 +0000 | |
---|---|---|
committer | 2015-09-01 19:54:00 +0000 | |
commit | 137e52c28d0b3c8593db2d083b101b18dc53addb (patch) | |
tree | 59850bcd88a21799817060c1cece5e0e853894c1 /lib/libc/rpc/xdr_array.c | |
parent | Display the correct source address when using a non-default routing (diff) | |
download | wireguard-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.c | 7 |
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: |