From fcb89237d9ab969bcd29bf8f8fae8d9905644b92 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 15 Oct 2019 12:42:37 +0200 Subject: [PATCH] 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. --- lisp/auth-source.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5