mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 06:08:02 +02:00
platform: fix assertion in _ip_route_add() to return correct error code
This commit is contained in:
parent
cf21da4ed1
commit
7d6c1a0f43
1 changed files with 1 additions and 1 deletions
|
|
@ -5346,7 +5346,7 @@ _ip_route_add(NMPlatform *self, NMPNlmFlags flags, NMPObject *obj_stack, char **
|
||||||
char sbuf[NM_UTILS_TO_STRING_BUFFER_SIZE];
|
char sbuf[NM_UTILS_TO_STRING_BUFFER_SIZE];
|
||||||
int ifindex;
|
int ifindex;
|
||||||
|
|
||||||
_CHECK_SELF(self, klass, FALSE);
|
_CHECK_SELF(self, klass, -NME_BUG);
|
||||||
|
|
||||||
/* The caller already ensures that this is a stack allocated copy, that
|
/* The caller already ensures that this is a stack allocated copy, that
|
||||||
* - stays alive for the duration of the call.
|
* - stays alive for the duration of the call.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue