[PATCH] include stdlib.h for free/freezero
Michael Forney
mforney at mforney.org
Fri Nov 6 08:31:32 AEDT 2026
This fixes the build with --without-openssl, where stdlib.h is not
implicitly included by openssl/crypto.h.
While the CI tests --without-openssl, this configuration is only
run on ubuntu-22.04 which uses gcc < 14, so implicit functions are
only warnings (see [0]) by default.
[0] https://github.com/openssh/openssh-portable/actions/runs/41998802982/job/127148570075#step:11:550
---
auth-passwd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/auth-passwd.c b/auth-passwd.c
index 5406e2d55..2fafba4fd 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -41,6 +41,7 @@
#include <sys/types.h>
#include <pwd.h>
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
--
2.54.0
More information about the openssh-unix-dev
mailing list