File 0002-Fix-invalid-check-in-route-creation-bsc-1148646.patch of Package netcontrol.19459

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

openSUSE Build Service is sponsored by