artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f59dcf
)
more goto fail on gettimeofday error
author
reyk
<reyk@openbsd.org>
Mon, 11 Aug 2008 08:24:41 +0000
(08:24 +0000)
committer
reyk
<reyk@openbsd.org>
Mon, 11 Aug 2008 08:24:41 +0000
(08:24 +0000)
usr.sbin/relayd/relay.c
patch
|
blob
|
history
diff --git
a/usr.sbin/relayd/relay.c
b/usr.sbin/relayd/relay.c
index
31bbb96
..
a1b435a
100644
(file)
--- a/
usr.sbin/relayd/relay.c
+++ b/
usr.sbin/relayd/relay.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: relay.c,v 1.10
3 2008/08/11 08:07:14
reyk Exp $ */
+/* $OpenBSD: relay.c,v 1.10
4 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)