gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnutls-dev] [PATCH] Fix use of uninitialized variable in `gnutls_ce


From: Simon Josefsson
Subject: Re: [gnutls-dev] [PATCH] Fix use of uninitialized variable in `gnutls_certificate_set_openpgp_key_mem ()'
Date: Thu, 14 Jun 2007 09:06:44 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.95 (gnu/linux)

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

address@hidden (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]