From: Ted Zlatanov Date: Tue, 26 Apr 2011 12:59:12 +0000 (-0500) Subject: Don't return in emacs_gnutls_handshake without an explicit value. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~208^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6a7a1b0b746d9e07f98183a0abb1298464dd1f29;p=emacs.git Don't return in emacs_gnutls_handshake without an explicit value. * gnutls.c (emacs_gnutls_handshake): Return an error if we're not supposed to be handshaking. Reported by Paul Eggert . --- diff --git a/src/ChangeLog b/src/ChangeLog index 04f2e6a5752..c91ed1dc74a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2011-04-26 Teodor Zlatanov + + * gnutls.c (emacs_gnutls_handshake): Return an error if we're not + supposed to be handshaking. + Reported by Paul Eggert . + 2011-04-26 Daniel Colascione * lisp.h (Qdebug): List symbol. diff --git a/src/gnutls.c b/src/gnutls.c index 975fe655072..60a4949f431 100644 --- a/src/gnutls.c +++ b/src/gnutls.c @@ -74,7 +74,7 @@ emacs_gnutls_handshake (struct Lisp_Process *proc) int ret; if (proc->gnutls_initstage < GNUTLS_STAGE_HANDSHAKE_CANDO) - return; + return -1; if (proc->gnutls_initstage < GNUTLS_STAGE_TRANSPORT_POINTERS_SET) {