From: Guus Sliepen Date: Sat, 6 Oct 2012 19:15:19 +0000 (+0200) Subject: Clear connection options and status fields in free_connection_partially(). X-Git-Tag: release-1.1pre3~28 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;ds=inline;h=86116bb022f0b885638ff9ba21b359fc9f55286a;hp=86116bb022f0b885638ff9ba21b359fc9f55286a;p=tinc Clear connection options and status fields in free_connection_partially(). Most fields should be zero when reusing a connection. In particular, when an outgoing connection to a node which is reachable on more than one address is made, the second connection to that node will have status.encryptout set but outctx will be NULL, causing a NULL pointer dereference when EVP_EncryptUpdate() is called in send_meta() when it shouldn't. ---