Ticket #19577: patch-src-logreader.c.diff

File patch-src-logreader.c.diff, 551 bytes (added by denis.laplante@…, 16 years ago)

Patch from https://bugzilla.balabit.com/show_bug.cgi?id=43

  • src/logreader.c

    log_reader_fetch_log(LogReader *self, FDRead *fd) 
    439439          g_sockaddr_unref(sa);
    440440          return FALSE;
    441441        }
    442       else
     442      else if (rc > 0)
    443443        {
    444444          if (self->options->padding && rc != self->options->padding)
    445445            {
    log_reader_fetch_log(LogReader *self, FDRead *fd) 
    457457        }
    458458
    459459      g_sockaddr_unref(sa);
    460       if (self->flags & LR_NOMREAD)
     460      if (rc == 0 || (self->flags & LR_NOMREAD))
    461461        break;
    462462    }
    463463  return TRUE;