libpttls: Destroy reader when handling errors during SASL

This commit is contained in:
Tobias Brunner
2013-03-25 18:33:57 +01:00
parent acbe87787b
commit 2467c46856
+2
View File
@@ -231,7 +231,9 @@ static status_t do_sasl(private_pt_tls_client_t *this, sasl_mechanism_t *sasl)
reader->destroy(reader);
return NEED_MORE;
}
/* fall-through */
default:
reader->destroy(reader);
return FAILED;
}