Ethereal-dev: [Ethereal-dev] Re: Bug in randpkt

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Brice Augustin <bricecotte@xxxxxxxxx>
Date: Wed, 20 Jul 2005 22:56:41 +0200
This message had no answer... why ?

Did I made a mistake ? Is there a bug, or did I misunderstand how
randpkt works ? :)

Best regards,

Brice Augustin


On 6/28/05, Brice <bricecotte@xxxxxxxxx> wrote:
> Hello,
> 
> There is a bug in the for loop that generates a random payload in
> randpkt : the loop should stop when j reaches len_this_pkt, not
> len_random.
> 
> Here is a (very simple !) patch to fix it.
> 
> Sincerely yours,
> 
> Brice
> 
> 
>