Bug 1486 - segfaults in nix-vector routing with bridges
segfaults in nix-vector routing with bridges
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: nix-vector
pre-release
All All
: P5 normal
Assigned To: John Abraham
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-15 13:48 UTC by scheibel1
Modified: 2012-08-27 03:02 UTC (History)
4 users (show)

See Also:


Attachments
patch (891 bytes, patch)
2012-08-15 13:48 UTC, scheibel1
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description scheibel1 2012-08-15 13:48:50 UTC
Created attachment 1435 [details]
patch

on the following lines:

                  Ptr<Channel> chBridged = ndBridged->GetChannel ();
                  if (channel == 0)
                    {
                      continue;
                    }

in nix-vector-routing.cc GetAdjacentNetDevices the 'if' statement should be checking 'chBridged' rather than 'channel'.  Else there is the potential for this function to be recursively called with a null 'channel' param.  Patch included.
Comment 1 Tom Henderson 2012-08-27 03:02:00 UTC
changeset: c57bd30c65cf