diff options
| author | Eli Zaretskii | 2015-06-27 11:00:38 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2015-06-27 11:00:38 +0300 |
| commit | 5a7fb4f0cc5a21808ab6fa062050059ceac027e4 (patch) | |
| tree | 5e177c37e336eb923f557c14251b1f6376b59af7 /src | |
| parent | 45fd93603747b64223291450ad89cf5a647f6701 (diff) | |
| download | emacs-5a7fb4f0cc5a21808ab6fa062050059ceac027e4.tar.gz emacs-5a7fb4f0cc5a21808ab6fa062050059ceac027e4.zip | |
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 <fangtao0901@gmail.com>. (Bug#20908)
Diffstat (limited to 'src')
| -rw-r--r-- | src/gnutls.c | 2 |
1 files changed, 1 insertions, 1 deletions
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). */) | |||
| 1512 | || !NILP (Fmember (QCgnutls_bootprop_trustfiles, verify_error))) | 1512 | || !NILP (Fmember (QCgnutls_bootprop_trustfiles, verify_error))) |
| 1513 | { | 1513 | { |
| 1514 | emacs_gnutls_deinit (proc); | 1514 | emacs_gnutls_deinit (proc); |
| 1515 | error ("Certificate validation failed %s, verification code %u", | 1515 | error ("Certificate validation failed %s, verification code %x", |
| 1516 | c_hostname, peer_verification); | 1516 | c_hostname, peer_verification); |
| 1517 | } | 1517 | } |
| 1518 | else | 1518 | else |