]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix auth-source password lookup
authorAlex Murray <alex.murray@canonical.com>
Mon, 25 Nov 2019 11:48:07 +0000 (22:18 +1030)
committerRobert Pluim <rpluim@gmail.com>
Tue, 26 Nov 2019 08:23:45 +0000 (09:23 +0100)
* lisp/net/network-stream.el
(network-stream-certificate): Ensure :port is specified as a string to
'auth-source-search' (Bug#38371).

Copyright-paperwork-exempt: yes

lisp/net/network-stream.el

index 1e9317bc18c213ad89b92681b437147236dc2d68..b5419f1d57390f093e0e76a02b0851fa6a606046 100644 (file)
@@ -233,7 +233,7 @@ gnutls-boot (as returned by `gnutls-boot-parameters')."
               (ignore-errors
                 (car (auth-source-search :max 1
                                          :host host
-                                         :port service))))
+                                         :port (format "%s" service)))))
             (key (plist-get auth-info :key))
             (cert (plist-get auth-info :cert)))
        (and key cert (file-readable-p key) (file-readable-p cert)