From d06fb54ecc239fc20930038adb91a31f4d3f7a2c Mon Sep 17 00:00:00 2001 From: John Safranek Date: Tue, 22 Sep 2026 21:05:29 -0700 Subject: [PATCH] tests: nest the client guard inside the SFTP one A client-only block in regress.c closed inside #ifdef WOLFSSH_SFTP, so TestSftpAttributesRoundTrip() built without SFTP and --enable-scp failed on an unused function. The client block now closes before the SFTP guard and reopens inside it. --- tests/regress.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/regress.c b/tests/regress.c index 2a98a2ab1..bb6de33d0 100644 --- a/tests/regress.c +++ b/tests/regress.c @@ -11878,8 +11878,10 @@ static void TestTerminalResizeBlockedAfterDisconnect(void) wolfSSH_CTX_free(ctx); } #endif /* WOLFSSH_TERM && !NO_FILESYSTEM */ +#endif /* !NO_WOLFSSH_CLIENT */ #ifdef WOLFSSH_SFTP +#ifndef NO_WOLFSSH_CLIENT static void TestOct2DecRejectsInvalidNonLeadingDigit(void) { WOLFSSH_CTX* ctx;