Fix accidental deacrease of send buffer pointer
authorVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
Fri, 26 Feb 2010 18:01:34 +0000 (20:01 +0200)
committerVasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
Fri, 26 Feb 2010 18:01:34 +0000 (20:01 +0200)
lib/quagga/src/quagga.c

index 869029f..bbd27db 100644 (file)
@@ -311,6 +311,7 @@ zebra_send_command(unsigned char command, unsigned char *options, int optlen)
     if (ret < 0) {
       if ((errno == EINTR) || (errno == EAGAIN)) {
         errno = 0;
+        ret = 0;
         continue;
       } else {
         olsr_printf(1, "(QUAGGA) Disconnected from zebra\n");