diff --git a/lib/isc/httpd.c b/lib/isc/httpd.c index ddb6931ac6..61ca14311d 100644 --- a/lib/isc/httpd.c +++ b/lib/isc/httpd.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: httpd.c,v 1.4 2006/12/21 06:02:30 marka Exp $ */ +/* $Id: httpd.c,v 1.5 2006/12/21 10:06:17 marka Exp $ */ /*! \file */ @@ -220,9 +220,10 @@ static void destroy_client(isc_httpd_t **httpdp) { isc_httpd_t *httpd = *httpdp; - *httpdp = NULL; isc_httpdmgr_t *httpdmgr = httpd->mgr; + *httpdp = NULL; + LOCK(&httpdmgr->lock); isc_socket_detach(&httpd->sock);