]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
pt-tls-server: Properly fail if processing PB-TNC batches failed
authorTobias Brunner <tobias@strongswan.org>
Mon, 15 Jun 2026 14:51:46 +0000 (16:51 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 23 Jul 2026 08:26:08 +0000 (10:26 +0200)
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

index 906b145020a3d06b9c69e83bc8315b6417535b11..8e4185007e83cb5a1846da4f27921781e8645c67 100644 (file)
@@ -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;
                }