D27467: make sure ifa_addr isn't null
Harald Sitter
noreply at phabricator.kde.org
Mon Feb 17 21:49:14 GMT 2020
sitter created this revision.
sitter added a reviewer: ngraham.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
sitter requested review of this revision.
REVISION SUMMARY
the manpage:
The ifa_addr field points to a structure containing the interface
address. (The sa_family subfield should be consulted to determine
the format of the address structure.) This field may contain a null
pointer.
why that exactly happens I do not know in absence of more debug info.
I expect it's something to do with an interface being up but not quite
somehow. I utterly failed to simulate this though :|
because of that I do not know if such a device has any use being listed,
and I am adding some possibly relevant debug output in the hopes of
maybe getting some data reported.
if these devices still turn out useful, the MyNIC construction needs
partially moving before the ifa_addr check.
BUG: 417798
FIXED-IN: 5.18.1
TEST PLAN
hoping for the best!
REPOSITORY
R102 KInfoCenter
BRANCH
Plasma/5.18
REVISION DETAIL
https://phabricator.kde.org/D27467
AFFECTED FILES
Modules/nics/nic.cpp
To: sitter, ngraham
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200217/c4b5997f/attachment.html>
More information about the Plasma-devel
mailing list