summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/relay.c
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2008-08-11 08:24:42 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2008-08-11 08:24:42 +0000
commitb461b3dc7df254079c1b96b34955feab5d1be33b (patch)
tree6c62f90169b1c8b54b875f9e9a76f33db3f45bf2 /usr.sbin/relayd/relay.c
parent70de7c409151015bcf5c07c30e28c550df9df11d (diff)
more goto fail on gettimeofday error
Diffstat (limited to 'usr.sbin/relayd/relay.c')
-rw-r--r--usr.sbin/relayd/relay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c
index 31bbb9649fa..a1b435a2688 100644
--- a/usr.sbin/relayd/relay.c
+++ b/usr.sbin/relayd/relay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relay.c,v 1.103 2008/08/11 08:07:14 reyk Exp $ */
+/* $OpenBSD: relay.c,v 1.104 2008/08/11 08:24:41 reyk Exp $ */
/*
* Copyright (c) 2006, 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@@ -879,7 +879,7 @@ relay_read(struct bufferevent *bev, void *arg)
struct evbuffer *src = EVBUFFER_INPUT(bev);
if (gettimeofday(&con->se_tv_last, NULL) == -1)
- goto done;
+ goto fail;
if (!EVBUFFER_LENGTH(src))
return;
if (relay_bufferevent_write_buffer(cre->dst, src) == -1)