* gnutls.c (Fgnutls_peer_status): Check GNUTLS_INITSTAGE, not gnutls_p.

This commit is contained in:
Ted Zlatanov 2014-11-25 05:15:23 -05:00
parent 6a4dee9b99
commit 10f2f8aafa
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2014-11-25 Teodor Zlatanov <tzz@lifelogs.com>
* gnutls.c (Fgnutls_peer_status): Check GNUTLS_INITSTAGE, not gnutls_p.
2014-11-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnutls.c: Fix compilation warnings given fix --enable-gcc-warnings.

View file

@ -978,7 +978,7 @@ The return value is a property list. */)
CHECK_PROCESS (proc);
if (XPROCESS (proc)->gnutls_p == 0)
if ( GNUTLS_INITSTAGE (proc) < GNUTLS_STAGE_INIT )
return Qnil;
/* Then collect any warnings already computed by the handshake. */