Skip to content

Commit c1ff305

Browse files
committed
fix high integrity token check on AUTH/HELLO
1 parent bec1919 commit c1ff305

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/StackExchange.Redis/PhysicalBridge.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,7 +1622,7 @@ private WriteResult WriteMessageToServerInsideWriteLock(PhysicalConnection conne
16221622

16231623
if (_nextHighIntegrityToken is not 0
16241624
&& !connection.TransactionActive // validated in the UNWATCH/EXEC/DISCARD
1625-
&& message.Command is not RedisCommand.AUTH or RedisCommand.HELLO) // if auth fails, ECHO may also fail; avoid confusion
1625+
&& message.Command is not (RedisCommand.AUTH or RedisCommand.HELLO)) // if auth fails, ECHO may also fail; avoid confusion
16261626
{
16271627
// make sure this value exists early to avoid a race condition
16281628
// if the response comes back super quickly

0 commit comments

Comments
 (0)