]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
libpttls: Destroy reader when handling errors during SASL
authorTobias Brunner <tobias@strongswan.org>
Mon, 25 Mar 2013 16:19:51 +0000 (17:19 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 25 Mar 2013 17:33:57 +0000 (18:33 +0100)
src/libpttls/pt_tls_client.c

index a01da3939be63d09e1880435780540c293535d71..d3ac936a2476bcdf42035b784a18ffc538369cd2 100644 (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;
                }