From: Daiki Ueno Date: Tue, 15 Oct 2019 10:42:37 +0000 (+0200) Subject: auth-source: Fix wrong-type-argument when searching plstore X-Git-Tag: emacs-27.0.90~1054 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fcb89237d9ab969bcd29bf8f8fae8d9905644b92;p=emacs.git auth-source: Fix wrong-type-argument when searching plstore `auth-source-search' can be called with an integer port number from `network-stream-certificate`, while the backend implementation doesn't allow non-string attributes. * lisp/auth-source.el (auth-source-plstore-search): Ensure attributes are string. --- diff --git a/lisp/auth-source.el b/lisp/auth-source.el index 1d3d8dba405..fdd869df3a6 100644 --- a/lisp/auth-source.el +++ b/lisp/auth-source.el @@ -2049,9 +2049,9 @@ entries for git.gnus.org: (if (or (null v) (eq t v)) nil - (if (stringp v) - (setq v (list v))) - (list k v)))) + (list + k + (auth-source-ensure-strings v))))) search-keys))) ;; needed keys (always including host, login, port, and secret) (returned-keys (delete-dups (append