reset pointer for a clean destruction
authorMartin Willi <martin@strongswan.org>
Thu, 4 Dec 2008 10:09:21 +0000 (10:09 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 4 Dec 2008 10:09:21 +0000 (10:09 -0000)
src/charon/sa/authenticators/eap_authenticator.c

index 70d56f0..0bda6f2 100644 (file)
@@ -360,6 +360,7 @@ static status_t process_eap_identity(private_eap_authenticator_t *this,
        }
        /* restart EAP exchange, but with real method */
        this->method->destroy(this->method);
+       this->method = NULL;
        this->do_eap_identity = FALSE;
        return initiate(this, this->type, this->vendor, out);
 }