Commit fc9ed61a authored by Robert Pluim's avatar Robert Pluim

Fix nsm for unencrypted connections

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)
parent d607067d
Pipeline #3054 failed with stage
in 58 minutes and 13 seconds
...@@ -823,7 +823,7 @@ protocol." ...@@ -823,7 +823,7 @@ protocol."
;; First format the certificate and warnings. ;; First format the certificate and warnings.
(with-current-buffer-window (with-current-buffer-window
buffer nil nil buffer nil nil
(insert (nsm-format-certificate status)) (when status (insert (nsm-format-certificate status)))
(insert message) (insert message)
(goto-char (point-min)) (goto-char (point-min))
;; Fill the first line of the message, which usually ;; Fill the first line of the message, which usually
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment