diff --git a/src/replication.c b/src/replication.c index 48f02cf658..7400229282 100644 --- a/src/replication.c +++ b/src/replication.c @@ -3589,6 +3589,7 @@ void syncWithPrimary(connection *conn) { sdsfree(err); err = NULL; server.repl_state = REPL_STATE_RECEIVE_VERSION_REPLY; + return; } /* Receive VERSION reply. */