mirror of
https://github.com/BlackLight/Snort_AIPreproc.git
synced 2024-12-17 23:25:12 +01:00
Fixing a mutex unlock bug in correlation.c
This commit is contained in:
parent
e0e669f278
commit
f191faf2ff
1 changed files with 9 additions and 0 deletions
|
@ -673,13 +673,22 @@ AI_alert_correlation_thread ( void *arg )
|
||||||
snprintf ( corr_ps_file , sizeof ( corr_ps_file ), "%s/correlated_alerts.ps" , config->corr_alerts_dir );
|
snprintf ( corr_ps_file , sizeof ( corr_ps_file ), "%s/correlated_alerts.ps" , config->corr_alerts_dir );
|
||||||
|
|
||||||
if ( !( gvc = gvContext() ))
|
if ( !( gvc = gvContext() ))
|
||||||
|
{
|
||||||
|
pthread_mutex_unlock ( &mutex );
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ( !( fp = fopen ( corr_dot_file, "r" )))
|
if ( !( fp = fopen ( corr_dot_file, "r" )))
|
||||||
|
{
|
||||||
|
pthread_mutex_unlock ( &mutex );
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ( !( g = agread ( fp )))
|
if ( !( g = agread ( fp )))
|
||||||
|
{
|
||||||
|
pthread_mutex_unlock ( &mutex );
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
gvLayout ( gvc, g, "dot" );
|
gvLayout ( gvc, g, "dot" );
|
||||||
gvRenderFilename ( gvc, g, "png", corr_png_file );
|
gvRenderFilename ( gvc, g, "png", corr_png_file );
|
||||||
|
|
Loading…
Reference in a new issue