]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix nsm for unencrypted connections
authorRobert Pluim <rpluim@gmail.com>
Wed, 4 Sep 2019 21:43:56 +0000 (23:43 +0200)
committerRobert Pluim <rpluim@gmail.com>
Wed, 4 Sep 2019 21:46:31 +0000 (23:46 +0200)
When connecting using a cleartext connection, nsm was erroring out and
tearing down the connection because it was trying to display
nonexistent certificate information.

* lisp/net/nsm.el (nsm-query-user): Only format certificate status
when it is valid.  (Bug#37221)

lisp/net/nsm.el

index 5e8381075bea11db71c5b66aa08d5a08946ec0fd..8750c19267adb252a7273e9b93198a4fd1556e70 100644 (file)
@@ -823,7 +823,7 @@ protocol."
       ;; First format the certificate and warnings.
       (with-current-buffer-window
        buffer nil nil
-       (insert (nsm-format-certificate status))
+       (when status (insert (nsm-format-certificate status)))
        (insert message)
        (goto-char (point-min))
        ;; Fill the first line of the message, which usually