After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707906 - network: Remove a spurious signal handler
network: Remove a spurious signal handler
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Network
unspecified
Other All
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-09-11 12:17 UTC by Rui Matos
Modified: 2013-09-12 16:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
network: Remove a spurious signal handler (1.09 KB, patch)
2013-09-11 12:17 UTC, Rui Matos
committed Details | Review
network: Fix a possible crash with no active connections (4.20 KB, patch)
2013-09-11 14:19 UTC, Kalev Lember
none Details | Review
network: Fix a possible crash with no active connections (3.66 KB, patch)
2013-09-11 14:22 UTC, Kalev Lember
committed Details | Review

Description Rui Matos 2013-09-11 12:17:34 UTC
I'm not sure if this fixes
https://bugzilla.redhat.com/show_bug.cgi?id=990196 since I can't
reproduce that crash but connecting the same handler to the same
widget and signal twice seems wrong anyway.
Comment 1 Rui Matos 2013-09-11 12:17:36 UTC
Created attachment 254671 [details] [review]
network: Remove a spurious signal handler
Comment 2 Kalev Lember 2013-09-11 14:11:21 UTC
Review of attachment 254671 [details] [review]:

Doubt it would fix the crash, but otherwise looks good to me.
Comment 3 Kalev Lember 2013-09-11 14:19:05 UTC
Created attachment 254686 [details] [review]
network: Fix a possible crash with no active connections

As a precaution, check the return value of get_active_connections to
avoid dereferencing a NULL pointer.

https://bugzilla.redhat.com/show_bug.cgi?id=990196
Comment 4 Kalev Lember 2013-09-11 14:22:25 UTC
Created attachment 254687 [details] [review]
network: Fix a possible crash with no active connections

As a precaution, check the return value of get_active_connections to
avoid dereferencing a NULL pointer.

https://bugzilla.redhat.com/show_bug.cgi?id=990196
Comment 5 Rui Matos 2013-09-11 14:30:09 UTC
Review of attachment 254687 [details] [review]:

Ah yes, it looks like this call's return value is checked like this elsewhere except in these places. Please push to master and gnome-3-8
Comment 6 Rui Matos 2013-09-11 14:47:31 UTC
Attachment 254671 [details] pushed as aee3f9d - network: Remove a spurious signal handler
Comment 7 Bastien Nocera 2013-09-11 16:01:53 UTC
Review of attachment 254671 [details] [review]:

In the future, you should mention the consequence of the patch in the commit subject, and how and why in the body.

Why was it "spurious" anyway?
Comment 8 Rui Matos 2013-09-11 16:09:04 UTC
(In reply to comment #7)
> Review of attachment 254671 [details] [review]:
> 
> In the future, you should mention the consequence of the patch in the commit
> subject, and how and why in the body.
> 
> Why was it "spurious" anyway?

Yes, sorry. It's quite obvious when looking at the surrounding code, that's why I didn't write anything further - it connects the same handler to the same
widget and signal twice.
Comment 9 Bastien Nocera 2013-09-12 16:41:45 UTC
So, not spurious, but duplicated :)