diff options
author | Miloslav Trmač <mitr@redhat.com> | 2015-06-06 01:07:08 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2015-06-08 17:49:35 +0200 |
commit | e2d2fafd106624ddfea4b17d3f40704b2031c00b (patch) | |
tree | 8b17220d24e7d273eccf40e149ed4d1f7493496c /src/polkitagent | |
parent | 2c8738941be18ef05ce724df46547f41dbc02fb5 (diff) | |
download | polkit-e2d2fafd106624ddfea4b17d3f40704b2031c00b.tar.gz |
Fix a crash when two authentication requests are in flight.
To reproduce:
1. pkttyagent -p $$ # or another suitable PID
# Keep it running, then in another terminal:
2. pkcheck -p $that_pid -a org.freedesktop.policykit.exec -u
# Keep it running, then in another terminal:
3. pkcheck -p $that_pid -a org.freedesktop.policykit.exec -u
4. Then, in the pkttyagent prompt, press Enter.
polkit_agent_text_listener_initiate_authentication was already setting
an appropriate error code, so the g_assert was unnecessary.
https://bugs.freedesktop.org/show_bug.cgi?id=90879
Diffstat (limited to 'src/polkitagent')
-rw-r--r-- | src/polkitagent/polkitagenttextlistener.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/polkitagent/polkitagenttextlistener.c b/src/polkitagent/polkitagenttextlistener.c index b5c8a3f..e63c285 100644 --- a/src/polkitagent/polkitagenttextlistener.c +++ b/src/polkitagent/polkitagenttextlistener.c @@ -546,12 +546,10 @@ polkit_agent_text_listener_initiate_authentication_finish (PolkitAgentListener GAsyncResult *res, GError **error) { - PolkitAgentTextListener *listener = POLKIT_AGENT_TEXT_LISTENER (_listener); gboolean ret; g_warn_if_fail (g_simple_async_result_get_source_tag (G_SIMPLE_ASYNC_RESULT (res)) == polkit_agent_text_listener_initiate_authentication); - g_assert (listener->active_session == NULL); ret = FALSE; |