fixed copy-paste bug (double-free)
authorMartin Willi <martin@strongswan.org>
Thu, 4 Dec 2008 10:10:37 +0000 (10:10 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 4 Dec 2008 10:10:37 +0000 (10:10 -0000)
src/charon/plugins/eap_sim/eap_sim.c

index 11e4adb..c2902b5 100644 (file)
@@ -1051,7 +1051,6 @@ static bool is_mutual(private_eap_sim_t *this)
 static void destroy(private_eap_sim_t *this)
 {
        this->peer->destroy(this->peer);
 static void destroy(private_eap_sim_t *this)
 {
        this->peer->destroy(this->peer);
-       this->peer->destroy(this->peer);
        DESTROY_IF(this->hasher);
        DESTROY_IF(this->prf);
        DESTROY_IF(this->signer);
        DESTROY_IF(this->hasher);
        DESTROY_IF(this->prf);
        DESTROY_IF(this->signer);