pt-tls-server: Fix leak if SASL authentication failed
This commit is contained in:
@@ -152,6 +152,7 @@ static status_t process_sasl(private_pt_tls_server_t *this,
|
||||
writer->write_uint8(writer, PT_TLS_SASL_RESULT_ABORT);
|
||||
pt_tls_write(this->tls, PT_TLS_SASL_RESULT,
|
||||
this->identifier++, writer->get_buf(writer));
|
||||
writer->destroy(writer);
|
||||
return FAILED;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user