Crash when Network Manager does not find any device

Javier Fernandez Garcia-Boente jfernandez at igalia.com
Thu Apr 22 01:11:01 PDT 2010


I think i've found out a bug in connectivity-networkmanager.c code,
which causes a crash when the nm module does not return any available
device. I guess that should not happen under regular conditions, with
the NetworkManager being well configured, which i think thats not the
case of my testing environment (i am using gentoo), but anyway, i think
the code is buggy because it should check if the "device" variable is
NULL before using it. 

I've attached a preliminary patch to show the problem. If we all agree
its actually a bug, i could open it in the bugzilla and work on a more
serious patch proposal. 

-- 
Javier Fernández García-Boente
http://blogs.igalia.com/jfernandez/
www.igalia.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 1091 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/geoclue/attachments/20100422/2be063a0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/geoclue/attachments/20100422/2be063a0/attachment.pgp>


More information about the GeoClue mailing list