From dbaca2dffece61dc76903dc4ff410ae01eca13c1 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 15 Jun 2026 16:51:46 +0200 Subject: [PATCH] pt-tls-server: Properly fail if processing PB-TNC batches failed Because `assess()` returns a `status_t`, `FALSE` is interpreted as `SUCCESS`. So a failure while processing PB-TNC batches terminated the process successfully. Fixes: 1e92d5f1145d ("Process PB-TNC batches received via PT-TLS asynchronously") --- src/libpttls/pt_tls_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpttls/pt_tls_server.c b/src/libpttls/pt_tls_server.c index 906b14502..8e4185007 100644 --- a/src/libpttls/pt_tls_server.c +++ b/src/libpttls/pt_tls_server.c @@ -439,7 +439,7 @@ static status_t assess(private_pt_tls_server_t *this, tls_t *tnccs) case FAILED: default: reader->destroy(reader); - return FALSE; + return FAILED; case NEED_MORE: break; }