"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/file-process/libs/file_lib.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.

file_lib.c  (snort-2.9.16.1):file_lib.c  (snort-2.9.17)
skipping to change at line 226 skipping to change at line 226
void file_context_reset(FileContext *context) void file_context_reset(FileContext *context)
{ {
cleanDynamicContext(context); cleanDynamicContext(context);
memset(context, 0, sizeof(*context)); memset(context, 0, sizeof(*context));
} }
void file_context_free(void *ctx) void file_context_free(void *ctx)
{ {
FileContext *context = (FileContext *)ctx; FileContext *context = (FileContext *)ctx;
if (!context) if (!context || context->attached_file_entry)
return; return;
cleanDynamicContext(context); cleanDynamicContext(context);
free(context); free(context);
} }
/*File properties*/ /*File properties*/
/*Only set the pointer for performance, no deep copy*/ /*Only set the pointer for performance, no deep copy*/
void file_name_set (FileContext *context, uint8_t *file_name, uint32_t name_size , void file_name_set (FileContext *context, uint8_t *file_name, uint32_t name_size ,
bool save_in_context) bool save_in_context)
{ {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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