From 6a7a1b0b746d9e07f98183a0abb1298464dd1f29 Mon Sep 17 00:00:00 2001 From: Ted Zlatanov Date: Tue, 26 Apr 2011 07:59:12 -0500 Subject: [PATCH] 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 . --- src/ChangeLog | 6 ++++++ src/gnutls.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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) { -- 2.39.2