libtls: Fix build with DEBUG_LEVEL < 3

This commit is contained in:
Tobias Brunner
2023-05-08 17:32:17 +02:00
parent bb06b7a4bb
commit 6086029056
4 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -230,7 +230,6 @@ static status_t process_application(private_tls_fragmentation_t *this,
while (reader->remaining(reader))
{
status_t status;
chunk_t data;
if (reader->remaining(reader) > TLS_MAX_FRAGMENT_LEN)
{
@@ -238,8 +237,10 @@ static status_t process_application(private_tls_fragmentation_t *this,
this->alert->add(this->alert, TLS_FATAL, TLS_DECODE_ERROR);
return NEED_MORE;
}
data = reader->peek(reader);
#if DEBUG_LEVEL >= 3
chunk_t data = reader->peek(reader);
DBG3(DBG_TLS, "%B", &data);
#endif
status = this->application->process(this->application, reader);
switch (status)
{