From 93d92db43dad6bf2d03a47cac19c68e50f604e97 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Tue, 4 Jul 2017 11:51:40 +0300 Subject: [PATCH] mdbx: fix mischecking in mdbx_reader_check0() (coverity). Change-Id: I2e3aaba1426c3b152a39b90f6d171380948da0a7 --- src/mdbx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mdbx.c b/src/mdbx.c index 531fb3a8..0adaa626 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -10279,7 +10279,7 @@ int __cold mdbx_reader_check0(MDBX_env *env, int rdt_locked, int *dead) { /* stale reader found */ if (!rdt_locked) { err = mdbx_rdt_lock(env); - if (MDBX_IS_ERROR(rc)) { + if (MDBX_IS_ERROR(err)) { rc = err; break; } @@ -10296,7 +10296,7 @@ int __cold mdbx_reader_check0(MDBX_env *env, int rdt_locked, int *dead) { continue; err = mdbx_rpid_check(env, pid); - if (MDBX_IS_ERROR(rc)) { + if (MDBX_IS_ERROR(err)) { rc = err; break; }