X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=system-linux.c;fp=system-linux.c;h=6fb0a01bf20c9b117c729fa3a04c20b8f9cc2fef;hp=0ca525602d9ea63ac5b845b2be9c6c7bdec7c26c;hb=1e2cf67ef36eaaed9a7f18898066df5c2366fd0d;hpb=b409c78066ea6fe2c2451ede86a2303c413b5e4b diff --git a/system-linux.c b/system-linux.c index 0ca5256..6fb0a01 100644 --- a/system-linux.c +++ b/system-linux.c @@ -2824,8 +2824,10 @@ static int system_add_vxlan(const char *name, const unsigned int link, struct bl unsigned tos = 1; if (strcmp(str, "inherit")) { - if (!system_tos_aton(str, &tos)) - return -EINVAL; + if (!system_tos_aton(str, &tos)) { + ret = -EINVAL; + goto failure; + } } nla_put_u8(msg, IFLA_VXLAN_TOS, tos);