From: florian Date: Sat, 2 Aug 2014 17:42:24 +0000 (+0000) Subject: don't leak fcgi fd X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fc896a6909cae3ffeea7536a5452b3acf47e3d0f;p=openbsd don't leak fcgi fd --- diff --git a/usr.sbin/httpd/server_fcgi.c b/usr.sbin/httpd/server_fcgi.c index f375d8a9b36..5129bf1ef2b 100644 --- a/usr.sbin/httpd/server_fcgi.c +++ b/usr.sbin/httpd/server_fcgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_fcgi.c,v 1.11 2014/08/02 17:05:18 florian Exp $ */ +/* $OpenBSD: server_fcgi.c,v 1.12 2014/08/02 17:42:24 florian Exp $ */ /* * Copyright (c) 2014 Florian Obser @@ -153,6 +153,7 @@ server_fcgi(struct httpd *env, struct client *clt) goto fail; } + clt->clt_fd = fd; if (clt->clt_srvbev != NULL) bufferevent_free(clt->clt_srvbev);