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.
This commit is contained in:
Daiki Ueno 2019-10-15 12:42:37 +02:00
parent 42df8cd686
commit fcb89237d9

View file

@ -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