summaryrefslogtreecommitdiff
path: root/gl
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2005-10-28 12:19:02 +0000
committerSimon Josefsson <simon@josefsson.org>2005-10-28 12:19:02 +0000
commitde9a75e3f468246da946465b51bbb85ec05bd10a (patch)
tree46db0de82a874d05b569225a732ca961db66f674 /gl
parent1d52634e37614cb6a67ada1b5eae68b818da8f5e (diff)
downloadgnutls-de9a75e3f468246da946465b51bbb85ec05bd10a.tar.gz
Update.
Diffstat (limited to 'gl')
-rw-r--r--gl/gc-gnulib.c2
-rw-r--r--gl/gc-libgcrypt.c2
-rw-r--r--gl/md2.c2
-rw-r--r--gl/md2.h2
4 files changed, 5 insertions, 3 deletions
diff --git a/gl/gc-gnulib.c b/gl/gc-gnulib.c
index de3b21340e..d5661793f3 100644
--- a/gl/gc-gnulib.c
+++ b/gl/gc-gnulib.c
@@ -192,6 +192,8 @@ gc_cipher_open (Gc_cipher alg, Gc_cipher_mode mode,
Gc_rc rc = GC_OK;
ctx = calloc (sizeof (*ctx), 1);
+ if (!ctx)
+ return GC_MALLOC_ERROR;
ctx->alg = alg;
ctx->mode = mode;
diff --git a/gl/gc-libgcrypt.c b/gl/gc-libgcrypt.c
index c79b0de3ff..b46e4881ed 100644
--- a/gl/gc-libgcrypt.c
+++ b/gl/gc-libgcrypt.c
@@ -243,6 +243,8 @@ gc_hash_open (Gc_hash hash, Gc_hash_mode mode, gc_hash_handle * outhandle)
Gc_rc rc = GC_OK;
ctx = calloc (sizeof (*ctx), 1);
+ if (!ctx)
+ return GC_MALLOC_ERROR;
ctx->alg = hash;
ctx->mode = mode;
diff --git a/gl/md2.c b/gl/md2.c
index b1468e40ac..b7b607a40e 100644
--- a/gl/md2.c
+++ b/gl/md2.c
@@ -26,8 +26,6 @@
#include "md2.h"
-#include <stddef.h>
-#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
diff --git a/gl/md2.h b/gl/md2.h
index 0f0349139d..917e05fc26 100644
--- a/gl/md2.h
+++ b/gl/md2.h
@@ -20,7 +20,7 @@
# define MD2_H 1
# include <stdio.h>
-# include <stdint.h>
+# include <stddef.h>
# define MD2_DIGEST_SIZE 16