summaryrefslogtreecommitdiff
path: root/logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'logger.c')
-rw-r--r--logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/logger.c b/logger.c
index e02bb47..ce97d26 100644
--- a/logger.c
+++ b/logger.c
@@ -971,8 +971,8 @@ enum logger_ret_type logger_log(logger *l, const enum log_entry_type event, cons
/* Request a maximum length of data to write to */
e = (logentry *) bipbuf_request(buf, (sizeof(logentry) + reqlen));
if (e == NULL) {
- pthread_mutex_unlock(&l->mutex);
l->dropped++;
+ pthread_mutex_unlock(&l->mutex);
return LOGGER_RET_NOSPACE;
}
e->event = event;