We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47db354 commit 40de657Copy full SHA for 40de657
1 file changed
src/ssl.c
@@ -7536,6 +7536,11 @@ int wolfDTLS_accept_stateless(WOLFSSL* ssl)
7536
return ret;
7537
}
7538
7539
+/* WC_NO_INLINE: wolfDTLS_accept_stateless passes the address of a stack-local
7540
+ * context here; the restore call before return clears it again. Preventing
7541
+ * inlining hides that cross-frame assignment from GCC's -Wdangling-pointer
7542
+ * analysis, which otherwise flags a false positive on GCC 14+. */
7543
+WC_NO_INLINE
7544
int wolfDTLS_SetChGoodCb(WOLFSSL* ssl, ClientHelloGoodCb cb, void* user_ctx)
7545
{
7546
WOLFSSL_ENTER("wolfDTLS_SetChGoodCb");
0 commit comments