Skip to content

Commit 83662c4

Browse files
committed
routes_mask: correct memcmp byte count in flb_routes_mask_is_empty
Signed-off-by: Eduardo Silva <[email protected]>
1 parent aca8fff commit 83662c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flb_routes_mask.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ int flb_routes_mask_is_empty(flb_route_mask_element *routes_mask,
144144
{
145145
return memcmp(routes_mask,
146146
config->route_empty_mask,
147-
config->route_mask_size) == 0;
147+
config->route_mask_size * sizeof(flb_route_mask_element)) == 0;
148148
}
149149

150150
int flb_routes_empty_mask_create(struct flb_config *config)

0 commit comments

Comments
 (0)