[PATCH] Fix for segmentation fault on WiFi rescan



Hello,

I am using an up-to-date version of Debian Sid with KDE 4.13.1. I noticed that
after Debian has upgraded NetworkManager from 0.9.8.8 to 0.9.8.10, whenever I
click on the KDE network management widget's (plasma-nm) WiFi rescan button,
NetworkManager crashes with a segmentation fault.

After a debugging session, I found out that the crash occurs because commit
da59b6d2229b85afbb9e14846931376340dc6030 updated the arguments of the
device_auth_request_cb function to include a pointer to a NMConnection
structure, but the NM_DEVICE_AUTH_REQUEST signal emitted by the
impl_device_request_scan function does not include the required pointer.

This causes NetworkManager 0.9.8.9 and later versions to crash every time a WiFi
rescan is initiated.

Please find attached a patch which fixes this issue.

(For the record, I do not know if I have solved the problem in an acceptable and
elegant manner: nm_device_get_connection returns NULL if we are not connected,
and we cannot verify the access control lists of a connection because we are not
connected.)

Thank you!

Vefa

Attachment: 0001-core-Emit-NM_DEVICE_AUTH_REQUEST-signal-correctly.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]