fix return code in interface_ip_add_target_route
authorFelix Fietkau <nbd@openwrt.org>
Mon, 18 Jun 2012 21:18:31 +0000 (23:18 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 18 Jun 2012 21:18:31 +0000 (23:18 +0200)
interface-ip.c

index 3957b48..6699d2e 100644 (file)
@@ -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;