diff options
Diffstat (limited to 'pimd/pim_addr.c')
-rw-r--r-- | pimd/pim_addr.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pimd/pim_addr.c b/pimd/pim_addr.c index 8d89b5714..2a6b4fe20 100644 --- a/pimd/pim_addr.c +++ b/pimd/pim_addr.c @@ -39,12 +39,8 @@ static ssize_t printfrr_pimaddr(struct fbuf *buf, struct printfrr_eargs *ea, if (!addr) return bputs(buf, "(null)"); - if (use_star) { - pim_addr zero = {}; - - if (memcmp(addr, &zero, sizeof(zero)) == 0) - return bputch(buf, '*'); - } + if (use_star && pim_addr_is_any(*addr)) + return bputch(buf, '*'); #if PIM_IPV == 4 return bprintfrr(buf, "%pI4", addr); |