diff options
author | Simon Rettberg | 2023-02-12 09:59:50 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-02-12 09:59:50 +0100 |
commit | 0bd40d0eec5900c95cf527d7f929930562e83e22 (patch) | |
tree | 3cfb6e3d44cd1e72480034bb9512b566d18ab40e /src | |
parent | [KERNEL] Rename logigng macros, change debug level of a few messages (diff) | |
download | dnbd3-0bd40d0eec5900c95cf527d7f929930562e83e22.tar.gz dnbd3-0bd40d0eec5900c95cf527d7f929930562e83e22.tar.xz dnbd3-0bd40d0eec5900c95cf527d7f929930562e83e22.zip |
[FUSE] Fix AIOOB access
Diffstat (limited to 'src')
-rw-r--r-- | src/fuse/connection.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fuse/connection.c b/src/fuse/connection.c index e6271a9..da181ea 100644 --- a/src/fuse/connection.c +++ b/src/fuse/connection.c @@ -653,10 +653,9 @@ static void probeAltServers() && rand() % srv->consecutiveFails >= FAIL_BACKOFF_START_COUNT ) { continue; } + srv->rttIndex += 1; if ( srv->rttIndex >= RTT_COUNT ) { srv->rttIndex = 0; - } else { - srv->rttIndex += 1; } // Probe char hstr[100]; |