diff src/route.c @ 5577:4da45107d87a draft

script: Use rt_proto_add to ensure no duplicate interfaces on OpenBSD OpenBSD allows matching priorities, so we need to take the interfaces in the order given to ensure uniqueness.
author Roy Marples <roy@marples.name>
date Mon, 18 Jan 2021 11:31:05 +0000
parents 4fe5c2a71254
children
line wrap: on
line diff
--- a/src/route.c	Mon Dec 28 12:59:20 2020 +0000
+++ b/src/route.c	Mon Jan 18 11:31:05 2021 +0000
@@ -409,6 +409,7 @@
 		return rt;
 
 	rt_free(rt);
+	errno = EEXIST;
 	return NULL;
 }