info: fix a use-after-free for incomplete immediate sends
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 1 May 2016 10:06:53 +0000 (12:06 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Sun, 1 May 2016 16:13:03 +0000 (18:13 +0200)
The send abuf is freed by write_data.
Really wasn't harmful because abuf was already cleared
in the code just above.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/info/olsrd_info.c

index b034403..fbca7cd 100644 (file)
@@ -530,8 +530,6 @@ static void send_info(const char * req, unsigned int send_what, int the_socket,
       writetimer_entry = olsr_start_timer(10, 0, OLSR_TIMER_PERIODIC, &write_data, NULL, 0);
     }
   }
-
-  abuf_free(&abuf);
 }
 
 static char * skipLeadingWhitespace(char * requ, size_t *len) {