[PATCH] include stdlib.h for free/freezero
Damien Miller
djm at mindrot.org
Fri Nov 6 09:49:41 AEDT 2026
appled - thanks
On Thu, 5 Nov 2026, Michael Forney wrote:
> 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
>
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at mindrot.org
> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev
>
More information about the openssh-unix-dev
mailing list