summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/svc_tcp.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/svc_tcp.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/svc_tcp.c')
-rw-r--r--lib/libc/rpc/svc_tcp.c9
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;