aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-03-25 17:19:51 +0100
committerTobias Brunner <tobias@strongswan.org>2013-03-25 18:33:57 +0100
commit2467c46856a271fdc8a8b10aa0d2ccf0c94ce2de (patch)
tree1a1d0965132a5b0501cce86ab1cb2c2335d7306e /src
parentacbe87787b085eb96c037049123f86fb699c0d30 (diff)
downloadstrongswan-2467c46856a271fdc8a8b10aa0d2ccf0c94ce2de.tar.bz2
strongswan-2467c46856a271fdc8a8b10aa0d2ccf0c94ce2de.tar.xz
libpttls: Destroy reader when handling errors during SASL
Diffstat (limited to 'src')
-rw-r--r--src/libpttls/pt_tls_client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libpttls/pt_tls_client.c b/src/libpttls/pt_tls_client.c
index a01da3939..d3ac936a2 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;
}