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/svc_tcp.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/svc_tcp.c')
-rw-r--r-- | lib/libc/rpc/svc_tcp.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/libc/rpc/svc_tcp.c b/lib/libc/rpc/svc_tcp.c index f30911d23dc..d0ee4b019c1 100644 --- a/lib/libc/rpc/svc_tcp.c +++ b/lib/libc/rpc/svc_tcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: svc_tcp.c,v 1.34 2015/09/01 17:31:39 deraadt Exp $ */ +/* $OpenBSD: svc_tcp.c,v 1.35 2015/09/01 19:54:01 deraadt Exp $ */ /* * Copyright (c) 2010, Oracle America, Inc. @@ -153,7 +153,6 @@ svctcp_create(int sock, u_int sendsize, u_int recvsize) } r = (struct tcp_rendezvous *)mem_alloc(sizeof(*r)); if (r == NULL) { - (void)fprintf(stderr, "svctcp_create: out of memory\n"); if (madesock) (void)close(sock); return (NULL); @@ -162,7 +161,6 @@ svctcp_create(int sock, u_int sendsize, u_int recvsize) r->recvsize = recvsize; xprt = (SVCXPRT *)mem_alloc(sizeof(SVCXPRT)); if (xprt == NULL) { - (void)fprintf(stderr, "svctcp_create: out of memory\n"); if (madesock) (void)close(sock); free(r); @@ -202,13 +200,10 @@ makefd_xprt(int fd, u_int sendsize, u_int recvsize) struct tcp_conn *cd; xprt = (SVCXPRT *)mem_alloc(sizeof(SVCXPRT)); - if (xprt == NULL) { - (void) fprintf(stderr, "svc_tcp: makefd_xprt: out of memory\n"); + if (xprt == NULL) goto done; - } cd = (struct tcp_conn *)mem_alloc(sizeof(struct tcp_conn)); if (cd == NULL) { - (void) fprintf(stderr, "svc_tcp: makefd_xprt: out of memory\n"); mem_free((char *) xprt, sizeof(SVCXPRT)); xprt = NULL; goto done; |