mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-04 23:28:08 +02:00
ifcfg-rh: fix signature of link_changed() callback
Depending on how arguments are passed to the called function, this could lead to a crash. Maybe not on 32 bit machines where the size of the pointer is the size of an int. Maybe not on x86_64, where the arguments are passed in registers. Fixes:b88c309167(cherry picked from commit548a5440e9)
This commit is contained in:
parent
b81cd79750
commit
cbfdb72db2
1 changed files with 1 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ devtimeout_ready (gpointer user_data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
link_changed (NMPlatform *platform, NMPObjectType *obj_type, int ifindex, const NMPlatformLink *link,
|
link_changed (NMPlatform *platform, NMPObjectType obj_type, int ifindex, const NMPlatformLink *link,
|
||||||
NMPlatformSignalChangeType change_type,
|
NMPlatformSignalChangeType change_type,
|
||||||
NMConnection *self)
|
NMConnection *self)
|
||||||
{
|
{
|
||||||
|
|
@ -117,7 +117,6 @@ link_changed (NMPlatform *platform, NMPObjectType *obj_type, int ifindex, const
|
||||||
if (g_strcmp0 (link->name, ifname) != 0)
|
if (g_strcmp0 (link->name, ifname) != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Shouldn't happen, but... */
|
|
||||||
if (change_type == NM_PLATFORM_SIGNAL_REMOVED)
|
if (change_type == NM_PLATFORM_SIGNAL_REMOVED)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue