Add a return value to signer_t.set_key()

This commit is contained in:
Martin Willi
2012-07-16 14:53:33 +02:00
parent 9020f7d0b9
commit 2d56575d52
10 changed files with 56 additions and 20 deletions
@@ -526,9 +526,8 @@ eap_radius_dae_t *eap_radius_dae_create(eap_radius_accounting_t *accounting)
return NULL;
}
this->secret.len = strlen(this->secret.ptr);
this->signer->set_key(this->signer, this->secret);
if (!open_socket(this))
if (!this->signer->set_key(this->signer, this->secret) ||
!open_socket(this))
{
destroy(this);
return NULL;