mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 20:10:17 +01:00
platform: assert we loaded the right libnl library
This commit is contained in:
parent
803fc616fd
commit
19ebe51e2e
1 changed files with 2 additions and 1 deletions
|
|
@ -163,7 +163,8 @@ _nl_get_vtable (void)
|
|||
if (!vtable.f_nl_has_capability)
|
||||
vtable.f_nl_has_capability = &_nl_f_nl_has_capability;
|
||||
|
||||
g_return_val_if_fail (vtable.handle, &vtable);
|
||||
g_return_val_if_fail (handle, &vtable);
|
||||
g_return_val_if_fail (&nl_connect == (int (*) (struct nl_sock *, int)) dlsym (handle, "nl_connect"), &vtable);
|
||||
}
|
||||
|
||||
return &vtable;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue