gdbusconnection: Avoid tripping assertion if we fail to authenticate twice
authorColin Walters <walters@verbum.org>
Wed, 13 Apr 2011 18:03:58 +0000 (14:03 -0400)
committerColin Walters <walters@verbum.org>
Wed, 13 Apr 2011 19:01:28 +0000 (15:01 -0400)
commit68b16deb1f4ec739f80291156f2e0e2eed87d225
tree000e19b85ef5fef010cf1ce37225b4de5b22d6f3
parent4d15ba90c04e474f996777c9931d50eae712816e
gdbusconnection: Avoid tripping assertion if we fail to authenticate twice

If g_bus_get_sync() fails in authentication (because e.g. the process
uid, doesn't match the expected in EXTERNAL), a secondary call to
g_bus_get_sync() would notice we aren't initialized, and try
to initialize.

The assertion here is just wrong; we now explicitly and clearly handle
both cases where we already have an error, or we already succeeded.

https://bugzilla.gnome.org/show_bug.cgi?id=635694
gio/gdbusconnection.c