diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-10-04 18:26:20 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-10-04 18:29:06 +0200 |
commit | bf5335cf3421811cd419d9b40be69d2ad9ed8bde (patch) | |
tree | 9000ffd71f8aff4c8c8afff8ddb9495525bde876 /pimd/pim_pim.c | |
parent | ospf6d: Do not explicitly set the thread pointer to NULL (diff) | |
download | frr-bf5335cf3421811cd419d9b40be69d2ad9ed8bde.tar.xz frr-bf5335cf3421811cd419d9b40be69d2ad9ed8bde.zip |
pimd: Do not explicitly set the thread pointer to NULL
FRR should only ever use the appropriate THREAD_ON/THREAD_OFF
semantics. This is espacially true for the functions we
end up calling the thread for.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'pimd/pim_pim.c')
-rw-r--r-- | pimd/pim_pim.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index 8c38cf6c4..3df7dc41c 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c @@ -415,7 +415,6 @@ static void pim_sock_read_on(struct interface *ifp) zlog_debug("Scheduling READ event on PIM socket fd=%d", pim_ifp->pim_sock_fd); } - pim_ifp->t_pim_sock_read = NULL; thread_add_read(router->master, pim_sock_read, ifp, pim_ifp->pim_sock_fd, &pim_ifp->t_pim_sock_read); } |