From: Eli Zaretskii Date: Sat, 27 Jun 2015 08:00:38 +0000 (+0300) Subject: Avoid error in TLS connections due to incorrect format X-Git-Tag: emacs-25.0.90~1631 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5a7fb4f0cc5a21808ab6fa062050059ceac027e4;p=emacs.git Avoid error in TLS connections due to incorrect format * src/gnutls.c (Fgnutls_boot): Use the %x conversion specifier in the call to 'error', instead of the unsupported %u. Reported by lo2net . (Bug#20908) --- diff --git a/src/gnutls.c b/src/gnutls.c index cab24048e56..864cac5f511 100644 --- a/src/gnutls.c +++ b/src/gnutls.c @@ -1512,7 +1512,7 @@ one trustfile (usually a CA bundle). */) || !NILP (Fmember (QCgnutls_bootprop_trustfiles, verify_error))) { emacs_gnutls_deinit (proc); - error ("Certificate validation failed %s, verification code %u", + error ("Certificate validation failed %s, verification code %x", c_hostname, peer_verification); } else