Merge branch 'master' into topic/jsiwek/983

This commit is contained in:
Jon Siwek 2013-05-30 11:43:02 -05:00
commit 3c0578d009
3 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,8 @@
2.1-664 | 2013-05-28 21:37:46 -0700
* Dangling pointer fix. Addresses #1004. (Jon Siwek)
2.1-659 | 2013-05-24 17:24:18 -0700 2.1-659 | 2013-05-24 17:24:18 -0700
* Fix broken/missing documentation. (Jon Siwek) * Fix broken/missing documentation. (Jon Siwek)

View file

@ -1 +1 @@
2.1-659 2.1-664

View file

@ -1159,12 +1159,12 @@ Connection* NetSessions::NewConn(HashKey* k, double t, const ConnID* id,
if ( ! WantConnection(src_h, dst_h, tproto, flags, flip) ) if ( ! WantConnection(src_h, dst_h, tproto, flags, flip) )
return 0; return 0;
ConnID flip_id = *id;
if ( flip ) if ( flip )
{ {
// Make a guess that we're seeing the tail half of // Make a guess that we're seeing the tail half of
// an analyzable connection. // an analyzable connection.
ConnID flip_id = *id;
const IPAddr ta = flip_id.src_addr; const IPAddr ta = flip_id.src_addr;
flip_id.src_addr = flip_id.dst_addr; flip_id.src_addr = flip_id.dst_addr;
flip_id.dst_addr = ta; flip_id.dst_addr = ta;