From 291a59b5b732de084e392daea1433b1fdb9fbfd5 Mon Sep 17 00:00:00 2001 From: Sven-Haegar Koch Date: Sun, 22 Apr 2012 03:44:28 +0200 Subject: [PATCH] free_connection_partially(): also reset remote protocol version infos The used remote protocol can change between two reconnects, aka if the remote side has enabled/disabled for example their ExperimentalProtocols setting. --- src/connection.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/connection.c b/src/connection.c index 6fdd2bc4..29ad04ee 100644 --- a/src/connection.c +++ b/src/connection.c @@ -82,6 +82,10 @@ void free_connection_partially(connection_t *c) { closesocket(c->socket); c->socket = -1; + + c->protocol_major = 0; + c->protocol_minor = 0; + c->allow_request = 0; } void free_connection(connection_t *c) { -- 2.39.5