From: Tobias Brunner Date: Mon, 25 Mar 2013 16:19:51 +0000 (+0100) Subject: libpttls: Destroy reader when handling errors during SASL X-Git-Tag: 5.0.3~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2467c46856a271fdc8a8b10aa0d2ccf0c94ce2de;p=thirdparty%2Fstrongswan.git libpttls: Destroy reader when handling errors during SASL --- diff --git a/src/libpttls/pt_tls_client.c b/src/libpttls/pt_tls_client.c index a01da3939b..d3ac936a24 100644 --- a/src/libpttls/pt_tls_client.c +++ b/src/libpttls/pt_tls_client.c @@ -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; }