Diff for /embedaddon/quagga/lib/stream.c between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2012/10/09 09:22:28 version 1.1.1.3, 2013/07/21 23:54:39
Line 219  stream_set_endp (struct stream *s, size_t pos) Line 219  stream_set_endp (struct stream *s, size_t pos)
 {  {
   STREAM_VERIFY_SANE(s);    STREAM_VERIFY_SANE(s);
   
  if (!GETP_VALID (s, pos))  if (!ENDP_VALID(s, pos))
     {      {
       STREAM_BOUND_WARN (s, "set endp");        STREAM_BOUND_WARN (s, "set endp");
      pos = s->endp;      return;
     }      }
   
     /*
      * Make sure the current read pointer is not beyond the new endp.
      */
     if (s->getp > pos)
       {
         STREAM_BOUND_WARN(s, "set endp");
         return;
       }
   
   s->endp = pos;    s->endp = pos;
     STREAM_VERIFY_SANE(s);
 }  }
   
 /* Forward pointer. */  /* Forward pointer. */

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>