diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-11-20 16:06:17 +0000 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2012-12-06 17:52:30 +0000 |
commit | be0be56f6c097f1a54c64421303dfeb3b930d7a6 (patch) | |
tree | 3e8d2a1b61163d3b5927c5483336abc40036afb3 | |
parent | e33a5de2806bcf63543fdabb3e8607e9d699ca1c (diff) |
Don't crash on <challenge> after closing auth channel
https://bugs.freedesktop.org/show_bug.cgi?id=52146
-rw-r--r-- | src/auth-manager.c | 6 | ||||
-rw-r--r-- | tests/twisted/sasl/abort.py | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/auth-manager.c b/src/auth-manager.c index 46400ca42..663925b81 100644 --- a/src/auth-manager.c +++ b/src/auth-manager.c @@ -445,7 +445,11 @@ gabble_auth_manager_challenge_async (WockyAuthRegistry *registry, } else { - g_assert_not_reached (); + g_assert (self->priv->error != NULL); + + g_simple_async_result_set_from_error (result, self->priv->error->wocky_error); + g_simple_async_result_complete_in_idle (result); + g_object_unref (result); } } } diff --git a/tests/twisted/sasl/abort.py b/tests/twisted/sasl/abort.py index fc54eade6..908e1668f 100644 --- a/tests/twisted/sasl/abort.py +++ b/tests/twisted/sasl/abort.py @@ -171,7 +171,7 @@ if __name__ == '__main__': exec_test_(test_abort_mid) exec_test_(test_disconnect_mid) exec_test_(test_abort_connected) - # exec_test_(test_close_then_challenge) + exec_test_(test_close_then_challenge) # exec_test_(test_close_then_success) exec_test_(test_close_then_failure) exec_test_(test_abort_then_challenge) |