]> git.eshelyaron.com Git - emacs.git/commit
Don't crash if gnutls_handshake fails
authorRobert Pluim <rpluim@gmail.com>
Thu, 25 Feb 2021 15:36:56 +0000 (16:36 +0100)
committerRobert Pluim <rpluim@gmail.com>
Thu, 25 Feb 2021 15:44:43 +0000 (16:44 +0100)
commitd84d69dfbc5f64e9020ce38d2cbd60fe39cb27b9
treeaa9e6755690a84d810b40e01ff746072510d9d29
parent6c5e86fc175f06a7d37649d4130cf39fc0702278
Don't crash if gnutls_handshake fails

In some situations involving Internet access not being fully
functional, gnutls_handshake returns a fatal error, which we were
ignoring, causing us to call gnutls_handshake again.  Now we check for
the error and return it to the caller.

* src/gnutls.c (gnutls_try_handshake): Return immediately if
gnutls_handshake returns a fatal error (Bug#46709).
src/gnutls.c