Fix use of uninitialized variable in `gnutls_certificate_set_openpgp_key_mem ()'
commit937885f613a5dc4ef88a29f0070d3bc1ef752cc5
authorLudovic Courtès <ludo@chbouib.org>
Wed, 13 Jun 2007 17:42:39 +0000 (13 19:42 +0200)
committerSimon Josefsson <simon@josefsson.org>
Thu, 14 Jun 2007 07:04:17 +0000 (14 09:04 +0200)
treecb27c8c4249d9bf69e7627a18c88c7826aa34f88
parent0a1acd013afaebe136ecedc16361b4b5a97a8f5f
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>
libextra/gnutls_openpgp.c