diff options
author | Simon Josefsson <simon@josefsson.org> | 2005-10-28 12:19:02 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2005-10-28 12:19:02 +0000 |
commit | de9a75e3f468246da946465b51bbb85ec05bd10a (patch) | |
tree | 46db0de82a874d05b569225a732ca961db66f674 /gl | |
parent | 1d52634e37614cb6a67ada1b5eae68b818da8f5e (diff) | |
download | gnutls-de9a75e3f468246da946465b51bbb85ec05bd10a.tar.gz |
Update.
Diffstat (limited to 'gl')
-rw-r--r-- | gl/gc-gnulib.c | 2 | ||||
-rw-r--r-- | gl/gc-libgcrypt.c | 2 | ||||
-rw-r--r-- | gl/md2.c | 2 | ||||
-rw-r--r-- | gl/md2.h | 2 |
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; @@ -26,8 +26,6 @@ #include "md2.h" -#include <stddef.h> -#include <stdlib.h> #include <string.h> #include <sys/types.h> @@ -20,7 +20,7 @@ # define MD2_H 1 # include <stdio.h> -# include <stdint.h> +# include <stddef.h> # define MD2_DIGEST_SIZE 16 |