GNOME Bugzilla – Bug 756494
identity: don't ever nullify identifier
Last modified: 2015-10-14 16:10:14 UTC
This fixes a hard to hit crasher.
Created attachment 313176 [details] [review] identity: don't ever nullify identifier credentials stored in the kernel keyring disappear after they expire. This is is different from other credential caches, which hang around but maintain an expired timestamp until kdestroy. Because the credentials vanish, trying to read the principal from an previously existing credential cache, will yield NULL. This can lead to a crash in goa which never expects the identifier of an identity object to be NULL. This commit makes sure we retain the old identifier in the event the credential cache gets wiped.
Review of attachment 313176 [details] [review]: Thanks, committed after fixing a typo in the commit message ("This is is different ...").
Pushed to master, gnome-3-18, gnome-3-16 and gnome-3-14.
This downstream bug has an example backtrace: https://bugzilla.redhat.com/show_bug.cgi?id=1149662