[gnutls-dev] [PATCH] Fix use of uninitialized variable in `gnutls_certificate_set_openpgp_key_mem ()'
Simon Josefsson
simon at josefsson.org
Thu Jun 14 09:06:44 CEST 2007
Thanks, applied.
For some reason, 'git-am' seems to have garbled your name in git-log. I
saved the e-mail as UTF-8, and used 'git-am -s < foo' to apply the
patch. I wonder if this is a git bug... my locale is UTF-8, so I think
it should work.
/Simon
ludo at chbouib.org (Ludovic Courtès) writes:
> * libextra/gnutls_openpgp.c (stream_to_datum): Check whether INP is NULL
> rather than checking BUF (which is not initialized yet).
> ---
> libextra/gnutls_openpgp.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/libextra/gnutls_openpgp.c b/libextra/gnutls_openpgp.c
> index ddbbfc9..7ed57da 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;
> --
> 1.4.4.4
More information about the Gnutls-devel
mailing list