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 3957b4866df5624e00e21e1056faad3beaba46a2..6699d2e5616992c22c8c8236d152db6069a04ecd 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;