[Olsr-dev] dot_draw plugin problem
Henning Rogge
(spam-protected)
Mon Aug 31 08:32:36 CEST 2009
Am Fri August 28 2009 14:05:40 schrieb John Hay:
> --- lib/dot_draw/src/olsrd_dot_draw.c.orig 2009-08-22 23:36:37.000000000
> +0200 +++ lib/dot_draw/src/olsrd_dot_draw.c 2009-08-28 13:57:48.034033116
> +0200 @@ -300,17 +300,16 @@
>
> if (FD_ISSET(outbuffer_socket, &set)) {
> result = write(outbuffer_socket, outbuffer.buf, outbuffer.len);
> - if (result > 0) {
> + if (result > 0)
> abuf_pull(&outbuffer, result);
>
> - if (result <= 0) {
> - /* close this socket and cleanup*/
> - close(outbuffer_socket);
> - abuf_free(&outbuffer);
> - olsr_stop_timer(writetimer_entry);
> - writetimer_entry = NULL;
> - outbuffer_socket = -1;
> - }
> + if (result <= 0) {
> + /* close this socket and cleanup*/
> + close(outbuffer_socket);
> + abuf_free(&outbuffer);
> + olsr_stop_timer(writetimer_entry);
> + writetimer_entry = NULL;
> + outbuffer_socket = -1;
> }
> }
> }
Good catch... can you push it into the repository ?
Henning Rogge
*************************************************
Diplom Informatiker Henning Rogge
Forschungsgesellschaft für
Angewandte Naturwissenschaften e. V. (FGAN)
Neuenahrer Str. 20, 53343 Wachtberg, Germany
Tel.: 0049 (0)228 9435-961
Fax: 0049 (0)228 9435-685
E-Mail: (spam-protected)
Web: www.fgan.de
************************************************
Sitz der Gesellschaft: Bonn
Registergericht: Amtsgericht Bonn VR 2530
Vorstand: Dr. rer. nat. Ralf Dornhaus (Vors.), Prof. Dr. Joachim Ender
(Stellv.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20090831/4979b491/attachment.sig>
More information about the Olsr-dev
mailing list