httpinfo: ensure timers are set to NULL after calling olsr_stop_timer
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 26 Apr 2018 15:09:15 +0000 (17:09 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 26 Apr 2018 15:09:25 +0000 (17:09 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/httpinfo/src/olsrd_httpinfo.c

index e8e17ae..9eb795f 100644 (file)
@@ -604,6 +604,7 @@ httpinfo_write_data(void *foo __attribute__ ((unused))) {
   }
   if (outbuffer_count == 0) {
     olsr_stop_timer(writetimer_entry);
+    writetimer_entry = NULL;
   }
 }