platform: fix assertion in _ip_route_add() to return correct error code

This commit is contained in:
Thomas Haller 2023-03-08 15:06:00 +01:00
parent cf21da4ed1
commit 7d6c1a0f43
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -5346,7 +5346,7 @@ _ip_route_add(NMPlatform *self, NMPNlmFlags flags, NMPObject *obj_stack, char **
char sbuf[NM_UTILS_TO_STRING_BUFFER_SIZE];
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
* - stays alive for the duration of the call.