Pass in port only if provided by caller in the OS X keychain

* lisp/auth-source.el (auth-source-macos-keychain-search): Pass in
port only if provided (bug#23374).
This commit is contained in:
Jun Hao 2016-04-25 18:02:08 +02:00 committed by Lars Magne Ingebrigtsen
parent fda715c6cb
commit ff9de7b38a

View file

@ -1735,7 +1735,7 @@ entries for git.gnus.org:
(items (catch 'match
(dolist (host hosts)
(dolist (port ports)
(let* ((port (format "%S" port))
(let* ((port (if port (format "%S" port)))
(items (apply #'auth-source-macos-keychain-search-items
coll
type