summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ftp-proxy/ftp-proxy.c
diff options
context:
space:
mode:
authorcamield <camield@openbsd.org>2005-11-18 08:49:32 +0000
committercamield <camield@openbsd.org>2005-11-18 08:49:32 +0000
commit6afc28550bd98a8f1fbd3fa9acb437336e78b73b (patch)
tree10d8f2d057360dcfce58ca12413552c11862b405 /usr.sbin/ftp-proxy/ftp-proxy.c
parentMajor improvements to the aac(4) device driver. (diff)
downloadwireguard-openbsd-6afc28550bd98a8f1fbd3fa9acb437336e78b73b.tar.xz
wireguard-openbsd-6afc28550bd98a8f1fbd3fa9acb437336e78b73b.zip
don't assume that close() can fail, from deraadt
ok henning deraadt
Diffstat (limited to 'usr.sbin/ftp-proxy/ftp-proxy.c')
-rw-r--r--usr.sbin/ftp-proxy/ftp-proxy.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/ftp-proxy/ftp-proxy.c b/usr.sbin/ftp-proxy/ftp-proxy.c
index faf0b77c16b..4a195571274 100644
--- a/usr.sbin/ftp-proxy/ftp-proxy.c
+++ b/usr.sbin/ftp-proxy/ftp-proxy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftp-proxy.c,v 1.6 2005/11/17 13:32:05 deraadt Exp $ */
+/* $OpenBSD: ftp-proxy.c,v 1.7 2005/11/18 08:49:32 camield Exp $ */
/*
* Copyright (c) 2004, 2005 Camiel Dobbelaar, <cd@sentia.nl>
@@ -293,11 +293,9 @@ end_session(struct session *s)
bufferevent_free(s->server_bufev);
if (s->client_fd != -1)
- while (close(s->client_fd) != 0 && errno == EINTR)
- ;
+ close(s->client_fd);
if (s->server_fd != -1)
- while (close(s->server_fd) != 0 && errno == EINTR)
- ;
+ close(s->server_fd);
/* Remove rulesets by commiting empty ones. */
err = 0;