Don't free ephemeral ECDH keys twice.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 11 May 2013 12:13:23 +0000 (14:13 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 11 May 2013 12:14:20 +0000 (14:14 +0200)
commitd03dc91e27b31851f87351c03cfc9a43c1b06458
treea026c86e731df8042fdc3558de21cfe60c8f0157
parentfc119fb0096a9221f2cff279b07c886bcd794d28
Don't free ephemeral ECDH keys twice.

ecdh_compute_shared() was changed to immediately delete the ephemeral key after
the shared secret was computed.  Therefore, the pointer to the ecdh_t struct
should be zeroed so it won't be freed again when a struct sptps_t is freed.
src/sptps.c