[openssh-commits] [openssh] 03/04: Include stdlib.h for free() and calloc().

git+noreply at mindrot.org git+noreply at mindrot.org
Tue Jul 23 22:27:38 AEST 2019


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

dtucker pushed a commit to branch master
in repository openssh.

commit 2ea60312e1c08dea88982fec68244f89a40912ff
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Tue Jul 23 22:11:50 2019 +1000

    Include stdlib.h for free() and calloc().
---
 auth-options.c | 1 +
 hmac.c         | 2 ++
 krl.c          | 1 +
 mac.c          | 1 +
 4 files changed, 5 insertions(+)

diff --git a/auth-options.c b/auth-options.c
index 51422188..ca92f7a7 100644
--- a/auth-options.c
+++ b/auth-options.c
@@ -21,6 +21,7 @@
 
 #include <netdb.h>
 #include <pwd.h>
+#include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdarg.h>
diff --git a/hmac.c b/hmac.c
index 1c879640..e90b294f 100644
--- a/hmac.c
+++ b/hmac.c
@@ -18,6 +18,8 @@
 #include "includes.h"
 
 #include <sys/types.h>
+
+#include <stdlib.h>
 #include <string.h>
 
 #include "sshbuf.h"
diff --git a/krl.c b/krl.c
index bb960882..f36ba68a 100644
--- a/krl.c
+++ b/krl.c
@@ -25,6 +25,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <limits.h>
+#include <stdlib.h>
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
diff --git a/mac.c b/mac.c
index 9a504e89..eab453a4 100644
--- a/mac.c
+++ b/mac.c
@@ -27,6 +27,7 @@
 
 #include <sys/types.h>
 
+#include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
 

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


More information about the openssh-commits mailing list