diff options
author | Reyk Floeter <reyk@esdenera.com> | 2015-06-20 13:48:43 +0200 |
---|---|---|
committer | Reyk Floeter <reyk@esdenera.com> | 2015-06-20 13:48:43 +0200 |
commit | 43aa296392eea581bb39cdc1b3d0a282164c05c6 (patch) | |
tree | 073401ba96ebb819435ced7268a791b80ec2864a /httpd/server_fcgi.c | |
parent | fbefc9a818a5ed612c0df918598057a8b551cb95 (diff) | |
download | httpd-43aa296392eea581bb39cdc1b3d0a282164c05c6.tar.gz httpd-43aa296392eea581bb39cdc1b3d0a282164c05c6.zip |
sync with -current
Diffstat (limited to 'httpd/server_fcgi.c')
-rw-r--r-- | httpd/server_fcgi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/httpd/server_fcgi.c b/httpd/server_fcgi.c index d0a8800..c91c98b 100644 --- a/httpd/server_fcgi.c +++ b/httpd/server_fcgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_fcgi.c,v 1.53 2015/03/26 09:01:51 florian Exp $ */ +/* $OpenBSD: server_fcgi.c,v 1.54 2015/06/09 08:50:52 jung Exp $ */ /* * Copyright (c) 2014 Florian Obser <florian@openbsd.org> @@ -32,6 +32,7 @@ #include <time.h> #include <ctype.h> #include <event.h> +#include <unistd.h> #include "httpd.h" #include "http.h" @@ -153,7 +154,9 @@ server_fcgi(struct httpd *env, struct client *clt) goto fail; } + close(clt->clt_fd); clt->clt_fd = fd; + if (clt->clt_srvbev != NULL) bufferevent_free(clt->clt_srvbev); |