GNOME Bugzilla – Bug 727896
IdentityService crashes on startup if KerberosIdentityManager could not be created
Last modified: 2014-04-09 14:06:46 UTC
If goa_kerberos_identity_manager_new fails, the error is not correctly set. See: https://bugzilla.redhat.com/show_bug.cgi?id=1085721
Created attachment 273893 [details] [review] kerberos: Correctly set the error if object creation failed
Created attachment 273894 [details] [review] identity: Keep a reference to self during async operations
Review of attachment 273894 [details] [review]: I think this is a good idea, but it needs a little more explanation in the commit message. Maybe something: If the IdentityService object is freed while it's getting the initial list of identities shortly after start up (i.e., the service is exiting shortly after starting), then there's a chance the callback associated with the identity listing operation could be called after the service is freed (which could lead to a crash). This commit addresses that problem by reffing the service object until the list operation finishes, preventing it from getting freed prematurely.
Comment on attachment 273894 [details] [review] identity: Keep a reference to self during async operations Updated the commit message as suggested.