libpttls: Destroy reader when handling errors during SASL
This commit is contained in:
1 parent
acbe87787b
commit
2467c46856
1 file changed
+2
@@ -231,7 +231,9 @@ static status_t do_sasl(private_pt_tls_client_t *this, sasl_mechanism_t *sasl)
|
|||||||
reader->destroy(reader);
|
reader->destroy(reader);
|
||||||
return NEED_MORE;
|
return NEED_MORE;
|
||||||
}
|
}
|
||||||
|
/* fall-through */
|
||||||
default:
|
default:
|
||||||
|
reader->destroy(reader);
|
||||||
return FAILED;
|
return FAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user