diff options
| author | Lars Ingebrigtsen | 2018-06-25 02:34:37 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2018-06-25 02:34:37 +0200 |
| commit | cf36693bd4eb25c7d0b90affa87c4739daacf355 (patch) | |
| tree | c6c4781e9dd71ac0e994c460b1a7d06347155b4f /src | |
| parent | 190a45f201a9ae41c241a93f4b58c7e60b7a1c59 (diff) | |
| download | emacs-cf36693bd4eb25c7d0b90affa87c4739daacf355.tar.gz emacs-cf36693bd4eb25c7d0b90affa87c4739daacf355.zip | |
Don't use XCAR in possibly-nil situations
* src/gnutls.c (Fgnutls_peer_status): certs theoretically may be
nil, so don't use XCAR.
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 92956923db3..a8034d0abbf 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -1277,7 +1277,7 @@ The return value is a property list with top-level keys :warnings and | |||
| 1277 | 1277 | ||
| 1278 | /* Return the host certificate in its own element for | 1278 | /* Return the host certificate in its own element for |
| 1279 | compatibility reasons. */ | 1279 | compatibility reasons. */ |
| 1280 | result = nconc2 (result, list2 (intern (":certificate"), XCAR (certs))); | 1280 | result = nconc2 (result, list2 (intern (":certificate"), Fcar (certs))); |
| 1281 | } | 1281 | } |
| 1282 | 1282 | ||
| 1283 | state = XPROCESS (proc)->gnutls_state; | 1283 | state = XPROCESS (proc)->gnutls_state; |