Summary: | May accidentally release the bus names of active connections | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Will Thompson <will> |
Component: | tp-glib | Assignee: | Will Thompson <will> |
Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | Keywords: | patch |
Version: | git master | ||
Hardware: | Other | ||
OS: | All | ||
URL: | http://git.collabora.co.uk/?p=user/wjt/telepathy-glib.git;a=shortlog;h=refs/heads/fd.o-32184 | ||
Whiteboard: | review+ | ||
i915 platform: | i915 features: |
Description
Will Thompson
2010-12-07 07:56:57 UTC
hello. here is a branch! It fixes the TpBaseConnection bug, with no test case. It also fixes a few TpBaseClient and TpAccountManager nits I found while tracking this down. The actual bugfix (for the record, this regressed in 0.13.5) and the AM patch look fine, consider them r+ if you want to cherry-pick them. The AM patch could reasonably be applied to 0.12 too. + g_set_error (&error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT, + "Connection %s doesn't seem to exist. (Maybe the CM doesn't own " + "the corresponding bus name?)", connection_path); + DEBUG ("Failed to create TpConnection: %s", error->message); This is good in principle, but will segfault if error is NULL. (In reply to comment #2) > The actual bugfix (for the record, this regressed in 0.13.5) and the AM patch > look fine, consider them r+ if you want to cherry-pick them. The AM patch could > reasonably be applied to 0.12 too. > > + g_set_error (&error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT, > + "Connection %s doesn't seem to exist. (Maybe the CM doesn't own " > + "the corresponding bus name?)", connection_path); > + DEBUG ("Failed to create TpConnection: %s", error->message); > > This is good in principle, but will segfault if error is NULL. On the contrary: it won't crash *because* error is NULL. ;-) At the top of the function: 1505 GError *error = NULL; Oh, sorry, I was reading it as if error was a GError** parameter (without the &). review+, then. Merged the two minor fixes to 0.12: <http://git.collabora.co.uk/?p=telepathy-glib.git;a=log;h=8ae5881>. They'll be in 0.12.7. And merged 0.12 and the real fix to master: <http://git.collabora.co.uk/?p=telepathy-glib.git;a=shortlog;h=933247b>. So that'll be in 0.13.10. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.