Ethereal-dev: [Ethereal-dev] file.c strangeness

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

From: "Ronnie Sahlberg" <sahlberg@xxxxxxxxxxxxxxxx>
Date: Sun, 11 Aug 2002 15:42:06 +1000
In file.c  read_packet()
there is encapsulated  by the prencence of cf->rfcode
a few lines wich will do a dissection run.

Is this for something like read-filters or such?

Well the problem is that when this dissection run is made, the packet has
not been added to the packet list
yet and thus pinfo->fd->num is 0 (or undefined?)
This will break quite a few of ethereals features since lots of stuff needs
pinfo->fd->num to
have a meaningful value.

Is it really used or should it be removed?