netcontrol/0002-Fix-invalid-check-in-route-creation-bsc-1148646.patch
Marius Tomaschewski 0c6a0b8bde - udev: use correct udev rule (write) lock directory
[+ 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
2020-03-11 16:02:13 +00:00

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