mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-15 13:30:21 +00:00
pimd: NULL not 0
When handling data pointers explicity use NULL not 0. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
8da920d3c0
commit
d12f46fa1a
@ -138,7 +138,7 @@ struct igmp_sock *pim_igmp_sock_lookup_ifaddr(struct list *igmp_sock_list,
|
|||||||
if (ifaddr.s_addr == igmp->ifaddr.s_addr)
|
if (ifaddr.s_addr == igmp->ifaddr.s_addr)
|
||||||
return igmp;
|
return igmp;
|
||||||
|
|
||||||
return 0;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct igmp_sock *igmp_sock_lookup_by_fd(struct list *igmp_sock_list, int fd)
|
struct igmp_sock *igmp_sock_lookup_by_fd(struct list *igmp_sock_list, int fd)
|
||||||
@ -150,7 +150,7 @@ struct igmp_sock *igmp_sock_lookup_by_fd(struct list *igmp_sock_list, int fd)
|
|||||||
if (fd == igmp->fd)
|
if (fd == igmp->fd)
|
||||||
return igmp;
|
return igmp;
|
||||||
|
|
||||||
return 0;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pim_igmp_other_querier_expire(struct thread *t)
|
static int pim_igmp_other_querier_expire(struct thread *t)
|
||||||
@ -1004,7 +1004,7 @@ struct igmp_sock *pim_igmp_sock_add(struct list *igmp_sock_list,
|
|||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
zlog_warn("Could not open IGMP socket for %s on %s",
|
zlog_warn("Could not open IGMP socket for %s on %s",
|
||||||
inet_ntoa(ifaddr), ifp->name);
|
inet_ntoa(ifaddr), ifp->name);
|
||||||
return 0;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
sin.sin_family = AF_INET;
|
sin.sin_family = AF_INET;
|
||||||
@ -1013,7 +1013,7 @@ struct igmp_sock *pim_igmp_sock_add(struct list *igmp_sock_list,
|
|||||||
if (bind(fd, (struct sockaddr *) &sin, sizeof(sin)) != 0) {
|
if (bind(fd, (struct sockaddr *) &sin, sizeof(sin)) != 0) {
|
||||||
zlog_warn("Could not bind IGMP socket for %s on %s",
|
zlog_warn("Could not bind IGMP socket for %s on %s",
|
||||||
inet_ntoa(ifaddr), ifp->name);
|
inet_ntoa(ifaddr), ifp->name);
|
||||||
return 0;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
igmp = igmp_sock_new(fd, ifaddr, ifp, mtrace_only);
|
igmp = igmp_sock_new(fd, ifaddr, ifp, mtrace_only);
|
||||||
|
Loading…
Reference in New Issue
Block a user