]> git.proxmox.com Git - mirror_frr.git/blobdiff - ripngd/ripng_interface.c
Merge pull request #8639 from idryzhov/isis-new-bfd-lib
[mirror_frr.git] / ripngd / ripng_interface.c
index 16859c2d29dcf80a0b9176e9634a9d7eca46c37e..11a8fdff87e338959b2886d702cb751e20f3d451 100644 (file)
@@ -49,7 +49,7 @@
 #define IPV6_LEAVE_GROUP IPV6_DROP_MEMBERSHIP
 #endif
 
-DEFINE_MTYPE_STATIC(RIPNGD, RIPNG_IF, "ripng interface")
+DEFINE_MTYPE_STATIC(RIPNGD, RIPNG_IF, "ripng interface");
 
 /* Static utility function. */
 static void ripng_enable_apply(struct interface *);
@@ -321,10 +321,7 @@ void ripng_interface_clean(struct ripng *ripng)
                ri->enable_interface = 0;
                ri->running = 0;
 
-               if (ri->t_wakeup) {
-                       thread_cancel(ri->t_wakeup);
-                       ri->t_wakeup = NULL;
-               }
+               thread_cancel(&ri->t_wakeup);
        }
 }