From fc896a6909cae3ffeea7536a5452b3acf47e3d0f Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 2 Aug 2014 17:42:24 +0000 Subject: [PATCH] don't leak fcgi fd --- usr.sbin/httpd/server_fcgi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.20.1