logging: Also protect gpgrt_inc_errorcount against counter overflow.

Authored by werner on Feb 10 2020, 2:49 PM.

Description

logging: Also protect gpgrt_inc_errorcount against counter overflow.

* src/logging.c (_gpgrt_inc_errorcount): Protect against counter
overflow.
(_gpgrt_logv_internal): Use that function here so that we have only
one check for counter overflow.

We already had an overflow checking for log_error but not for the
silent increment function.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Committed
wernerFeb 10 2020, 2:49 PM
Parents
rE0a26c72b5af6: Post release updates
Branches
Unknown
Tags
Unknown