Skip to content
Commit 2be6abe9 authored by Philip Withnall's avatar Philip Withnall Committed by Philip Withnall
Browse files

gnutls: Prevent use of a destroyed GSource in a callback

It’s possible for the GTlsConnectionGnutlsSource to be destroyed in its
user-provided callback function. If gnutls_source_sync() is called after
this, it ends up attempting to modify the GSource after it’s been
destroyed, which is disallowed.

Bail out of gnutls_source_sync() early if the source has already been
destroyed.

https://bugzilla.gnome.org/show_bug.cgi?id=723774
parent 73aae8bb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment