txtinfo: remove a pointless assert
authorFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 13:00:54 +0000 (14:00 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 16:10:00 +0000 (17:10 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/txtinfo/src/olsrd_txtinfo.c

index 94824f7..c4abd84 100644 (file)
@@ -831,8 +831,6 @@ static void send_info(unsigned int send_what, int the_socket) {
   if (send_what & SIW_OLSRD_CONF)
     ipc_print_olsrd_conf(&abuf);
 
   if (send_what & SIW_OLSRD_CONF)
     ipc_print_olsrd_conf(&abuf);
 
-  assert(outbuffer_count < MAX_CLIENTS);
-
   outbuffer[outbuffer_count] = olsr_malloc(abuf.len, PLUGIN_NAME" output buffer");
   outbuffer_size[outbuffer_count] = abuf.len;
   outbuffer_written[outbuffer_count] = 0;
   outbuffer[outbuffer_count] = olsr_malloc(abuf.len, PLUGIN_NAME" output buffer");
   outbuffer_size[outbuffer_count] = abuf.len;
   outbuffer_written[outbuffer_count] = 0;