diff options
Diffstat (limited to 'lib/libc/rpc/xdr_reference.c')
-rw-r--r-- | lib/libc/rpc/xdr_reference.c | 7 |
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; } |