2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

do not clear lctx->buffer before it is has been locked

This commit is contained in:
Andreas Gustafsson 2000-08-24 18:21:40 +00:00
parent 249b19d917
commit dcfbc7c73e

View File

@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: log.c,v 1.42 2000/08/01 01:29:32 tale Exp $ */ /* $Id: log.c,v 1.43 2000/08/24 18:21:40 gson Exp $ */
/* Principal Authors: DCL */ /* Principal Authors: DCL */
@ -1264,10 +1264,11 @@ isc_log_doit(isc_log_t *lctx, isc_logcategory_t *category,
time_string[0] = '\0'; time_string[0] = '\0';
level_string[0] = '\0'; level_string[0] = '\0';
lctx->buffer[0] = '\0';
LOCK(&lctx->lock); LOCK(&lctx->lock);
lctx->buffer[0] = '\0';
lcfg = lctx->logconfig; lcfg = lctx->logconfig;
category_channels = ISC_LIST_HEAD(lcfg->channellists[category->id]); category_channels = ISC_LIST_HEAD(lcfg->channellists[category->id]);