GNOME Bugzilla – Bug 738906
smartcard: fix lock confusion in gsd_smartcard_manager_get_login_token
Last modified: 2014-10-20 23:20:48 UTC
gsd_smartcard_manager_get_login_token will return as soon as it finds a login token. In doing so, it neglects to drop the lock it took before its search began. This commit drops the early return from the code so that the found and not found cases follow the same exit path, where the lock is properly dropped.
Created attachment 288995 [details] [review] smartcard: fix lock confusion in gsd_smartcard_manager_get_login_token
(pushing since I don't expect to get review on smartcard stuff, but if someone has comments let me know and I can do follow up changes) Attachment 288995 [details] pushed as e1aac8d - smartcard: fix lock confusion in gsd_smartcard_manager_get_login_token