From: Felix Fietkau Date: Mon, 18 Jun 2012 21:18:31 +0000 (+0200) Subject: fix return code in interface_ip_add_target_route X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=44c23888ad36a340ed6314728e073873240fcf0d;p=oweals%2Fnetifd.git fix return code in interface_ip_add_target_route --- 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;