summaryrefslogtreecommitdiff
path: root/libextra
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@chbouib.org>2007-06-13 19:42:39 +0200
committerSimon Josefsson <simon@josefsson.org>2007-06-14 09:04:17 +0200
commit937885f613a5dc4ef88a29f0070d3bc1ef752cc5 (patch)
treecb27c8c4249d9bf69e7627a18c88c7826aa34f88 /libextra
parent0a1acd013afaebe136ecedc16361b4b5a97a8f5f (diff)
downloadgnutls-937885f613a5dc4ef88a29f0070d3bc1ef752cc5.tar.gz
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 <simon@josefsson.org>
Diffstat (limited to 'libextra')
-rw-r--r--libextra/gnutls_openpgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libextra/gnutls_openpgp.c b/libextra/gnutls_openpgp.c
index ddbbfc9a79..7ed57da5d9 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;