From 975a328e2eb3d1bea5fbc3c232580dd4739d59f0 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Thu, 6 Feb 2020 08:49:02 +0200 Subject: *: Replace s_addr 0 => INADDR_ANY Signed-off-by: Donatas Abraitis --- lib/routemap_northbound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/routemap_northbound.c') diff --git a/lib/routemap_northbound.c b/lib/routemap_northbound.c index 78f2a5a01..68b112b09 100644 --- a/lib/routemap_northbound.c +++ b/lib/routemap_northbound.c @@ -940,7 +940,7 @@ lib_route_map_entry_set_action_ipv4_address_modify(enum nb_event event, * only implemented action. */ yang_dnode_get_ipv4(&ia, dnode, NULL); - if (ia.s_addr == 0 || IPV4_CLASS_DE(ntohl(ia.s_addr))) + if (ia.s_addr == INADDR_ANY || IPV4_CLASS_DE(ntohl(ia.s_addr))) return NB_ERR_VALIDATION; /* FALLTHROUGH */ case NB_EV_PREPARE: -- cgit v1.2.3