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.
This commit is contained in:
Sven-Haegar Koch 2012-04-22 03:44:28 +02:00 committed by Guus Sliepen
parent 32e5c5bb7c
commit 291a59b5b7

View file

@ -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) {