From: Sven-Haegar Koch Date: Sun, 22 Apr 2012 01:44:28 +0000 (+0200) Subject: free_connection_partially(): also reset remote protocol version infos X-Git-Tag: import-tinc-1.1~372 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=291a59b5b732de084e392daea1433b1fdb9fbfd5;p=meshlink 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. --- 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) {