[+ 0004-udev-use-correct-udev-rule-write-lock-directory.patch] - sysconfig: fix segfault on missed end-quote (bsc#1027736) [+ 0003-sysconfig-fix-segfault-on-missed-end-quote-bsc-10277.patch] - fix segfault on invalid check in route creation (bsc#1148646) [+ 0002-Fix-invalid-check-in-route-creation-bsc-1148646.patch] - fix virsh iface-list not working as expected (bsc#1029201) [+ 0001-virsh-iface-list-not-working-as-expected-bsc-1029201.patch] OBS-URL: https://build.opensuse.org/package/show/network:utilities/netcontrol?expand=0&rev=30
26 lines
792 B
Diff
26 lines
792 B
Diff
From 1cd284f95ce47e0eb79314b3a27e099f443aefdb Mon Sep 17 00:00:00 2001
|
|
From: Marius Tomaschewski <mt@suse.de>
|
|
Date: Fri, 11 Oct 2019 12:37:31 +0200
|
|
References: bsc#1148646
|
|
Upstream: merged
|
|
Subject: [PATCH] Fix invalid check in route creation (bsc#1148646)
|
|
|
|
|
|
diff --git a/src/nutils.c b/src/nutils.c
|
|
index bda1b64..a2b8223 100644
|
|
--- a/src/nutils.c
|
|
+++ b/src/nutils.c
|
|
@@ -578,8 +578,7 @@ nc_route_create(unsigned int prefixlen, const nc_sockaddr_t *dest,
|
|
nc_error("Cannot create route - destination and gw are both 0/0");
|
|
return NULL;
|
|
}
|
|
- /* TODO: we have to parse opts (type + opts) */
|
|
- if(!nc_string_len(ifname) && !opts && !*opts) {
|
|
+ if(!nc_string_len(ifname)) {
|
|
nc_error("Cannot create route - interface route requires an interface");
|
|
return NULL;
|
|
}
|
|
--
|
|
2.16.4
|
|
|