diff options
author | Ted Zlatanov <tzz@lifelogs.com> | 2011-04-26 07:59:12 -0500 |
---|---|---|
committer | Ted Zlatanov <tzz@lifelogs.com> | 2011-04-26 07:59:12 -0500 |
commit | 6a7a1b0b746d9e07f98183a0abb1298464dd1f29 (patch) | |
tree | e2ef7934b2782279bb43ae4bbf08a9d54c474305 /src/gnutls.c | |
parent | 17519c905078b21eba56dd740f1ebccb2b6098a3 (diff) | |
download | emacs-6a7a1b0b746d9e07f98183a0abb1298464dd1f29.tar.gz |
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 <eggert@cs.ucla.edu>.
Diffstat (limited to 'src/gnutls.c')
-rw-r--r-- | src/gnutls.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |