From: Guus Sliepen Date: Sat, 6 Oct 2012 19:05:02 +0000 (+0200) Subject: Clear connection options and status fields in free_connection_partially(). X-Git-Tag: release-1.0.20~20 X-Git-Url: https://www.tinc-vpn.org/git/browse?a=commitdiff_plain;ds=sidebyside;h=0f53f489916eae57dd47b7c871295efb9bf02323;hp=0f53f489916eae57dd47b7c871295efb9bf02323;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. ---