]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix return value of imap-starttls-open
authorAndreas Schwab <schwab@linux-m68k.org>
Sun, 31 Jan 2016 12:34:03 +0000 (13:34 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Sun, 31 Jan 2016 12:36:22 +0000 (13:36 +0100)
* lisp/net/imap.el (imap-starttls-open): Fix return value.

lisp/net/imap.el

index 5c5ed868172bad2de8e88ae640e32303ecd4c085..7e4cc72028f1de1a090076a7de1a6c44b33133dc 100644 (file)
@@ -752,8 +752,9 @@ sure of changing the value of `foo'."
                    (lambda (capabilities)
                      (when (string-match-p "STARTTLS" capabilities)
                        "1 STARTTLS\r\n"))))
-         (done (and process
-                    (memq (process-status process) '(open run)))))
+         (done (if (and process
+                        (memq (process-status process) '(open run)))
+                   process)))
     (message "imap: Connecting with STARTTLS...%s" (if done "done" "failed"))
     done))