]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 11e4adbe0550ae02e0bc6de616bbce1d7f3156d1..c2902b54b037c41bcbf44bc66e268757c65a9834 100644 (file)
@@ -1050,7 +1050,6 @@ static bool is_mutual(private_eap_sim_t *this)
  */
 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);