Skip to content

Commit

Permalink
fix: crash when assigning scan session if all scan session binded.
Browse files Browse the repository at this point in the history
  • Loading branch information
patpatbear committed Apr 11, 2024
1 parent 377075d commit 93755ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctrip_swap_meta.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ swapScanSession *swapScanSessionsAssign(swapScanSessions *sessions) {
}
raxStop(&ri);

if (!swapScanSessionExpired(session)) session = NULL;
if (session && !swapScanSessionExpired(session)) session = NULL;
}

if (session) {
Expand Down

0 comments on commit 93755ec

Please sign in to comment.