From 44c23888ad36a340ed6314728e073873240fcf0d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 18 Jun 2012 23:18:31 +0200 Subject: [PATCH] fix return code in interface_ip_add_target_route --- interface-ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface-ip.c b/interface-ip.c index 3957b48..6699d2e 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -144,7 +144,7 @@ interface_ip_add_target_route(union if_addr *addr, bool v6) route = calloc(1, sizeof(*route)); if (!route) - return false; + return NULL; route->flags = v6 ? DEVADDR_INET6 : DEVADDR_INET4; route->mask = v6 ? 128 : 32; -- 2.25.1