From 937885f613a5dc4ef88a29f0070d3bc1ef752cc5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ludovic=20Court=C3=83=C2=A8s?= Date: Wed, 13 Jun 2007 19:42:39 +0200 Subject: [PATCH] Fix use of uninitialized variable in `gnutls_certificate_set_openpgp_key_mem ()' * libextra/gnutls_openpgp.c (stream_to_datum): Check whether INP is NULL rather than checking BUF (which is not initialized yet). Signed-off-by: Simon Josefsson --- libextra/gnutls_openpgp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libextra/gnutls_openpgp.c b/libextra/gnutls_openpgp.c index ddbbfc9a7..7ed57da5d 100644 --- a/libextra/gnutls_openpgp.c +++ b/libextra/gnutls_openpgp.c @@ -528,7 +528,7 @@ stream_to_datum (cdk_stream_t inp, gnutls_datum_t * raw) uint8_t *buf; size_t buflen; - if (!buf || !raw) + if (!inp || !raw) { gnutls_assert (); return GNUTLS_E_INVALID_REQUEST; -- 2.11.4.GIT