Fixed bug in the dot_draw plugin that was kicking out clients when
authorSaverio Proto <zioproto@gmail.com>
Thu, 25 Mar 2010 15:25:29 +0000 (16:25 +0100)
committerSaverio Proto <zioproto@gmail.com>
Thu, 25 Mar 2010 15:25:29 +0000 (16:25 +0100)
topology did not change between two consecutive printouts.

lib/dot_draw/src/olsrd_dot_draw.c

index fef7430..c4ffdb2 100644 (file)
@@ -303,7 +303,7 @@ dotdraw_write_data(void *foo __attribute__ ((unused))) {
     if (result > 0)
       abuf_pull(&outbuffer, result);
 
-    if (result <= 0) {
+    if (result < 0) {
       /* close this socket and cleanup*/
       close(outbuffer_socket);
       abuf_free(&outbuffer);