[openssh-commits] [openssh] branch master updated: include stdlib.h for free/freezero

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Nov 6 09:49:23 AEDT 2026


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

The following commit(s) were added to refs/heads/master by this push:
     new 102bee7f3 include stdlib.h for free/freezero
102bee7f3 is described below

commit 102bee7f3a873b39784c909ba238c90b0b4c395f
Author: Michael Forney <mforney at mforney.org>
AuthorDate: Fri Nov 6 08:31:32 2026 +1100

    include stdlib.h for free/freezero
    
    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>

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list