"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/sfutil/sfportobject.c" between
snort-2.9.16.1.tar.gz and snort-2.9.17.tar.gz

About: Snort is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

sfportobject.c  (snort-2.9.16.1):sfportobject.c  (snort-2.9.17)
skipping to change at line 700 skipping to change at line 700
/* Dup the Item List */ /* Dup the Item List */
if( po->item_list ) if( po->item_list )
{ {
for(poi =(PortObjectItem*)sflist_firstpos(po->item_list,&lpos); for(poi =(PortObjectItem*)sflist_firstpos(po->item_list,&lpos);
poi != NULL; poi != NULL;
poi =(PortObjectItem*)sflist_nextpos(po->item_list,&lpos) ) poi =(PortObjectItem*)sflist_nextpos(po->item_list,&lpos) )
{ {
poinew = PortObjectItemDup( poi ); poinew = PortObjectItemDup( poi );
if(!poinew) if(!poinew)
return 0; {
free (ponew->name);
free (ponew);
return NULL;
}
PortObjectAddItem( ponew, poinew, NULL ); PortObjectAddItem( ponew, poinew, NULL );
} }
} }
return ponew; return ponew;
} }
/* /*
* Dup the PortObjects Item List, Name, and RuleList->RuleHash * Dup the PortObjects Item List, Name, and RuleList->RuleHash
*/ */
PortObject2 * PortObject2Dup( PortObject * po ) PortObject2 * PortObject2Dup( PortObject * po )
 End of changes. 1 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)