]> code.delx.au - gnu-emacs/commitdiff
Pass in port only if provided by caller in the OS X keychain
authorJun Hao <jun_hao@aol.com>
Mon, 25 Apr 2016 16:02:08 +0000 (18:02 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 25 Apr 2016 16:03:55 +0000 (18:03 +0200)
* lisp/auth-source.el (auth-source-macos-keychain-search): Pass in
port only if provided (bug#23374).

lisp/auth-source.el

index d691b54d67e95e30512f9aa12f6a5638a66e8b88..fe28a02c20050262db45ca29a086a7fd3055bf3c 100644 (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