GNOME Bugzilla – Bug 672814
Don't complete the hkp_source_export operation on an error
Last modified: 2012-04-12 15:59:46 UTC
Occurence of an error does not mean that there are no more pending requests. So set the error but wait for the other requests to finish.
Created attachment 210589 [details] [review] Proposed fix
Is this a crasher fix, or a behavioral fix? Do you think it would make sense to complete immediately, and set a flag on in the ExportClosure struct and a check early on in on_export_message_complete() which would cause further calls to be ignored.
It is a crasher fix. If an error occurs and the call is completed, and after that another message comes in, then an already freed object will be unreffed. I do not know what the correct thing would be to do because I do not the cause of the errors. I can give you a key which causes this for testing.
Thanks. Merged into gnome-3-4 branch of seahorse. Will be included in 3.4.1