@ -166,7 +166,6 @@ static void LogTlsLogPem(LogTlsStoreLogThread *aft, const Packet *p, SSLState *s
goto end_fwrite_fp ;
goto end_fwrite_fp ;
}
}
fclose ( fp ) ;
fclose ( fp ) ;
SCFree ( aft - > enc_buf ) ;
//Logging certificate informations
//Logging certificate informations
memcpy ( filename + ( strlen ( filename ) - 3 ) , " meta " , 4 ) ;
memcpy ( filename + ( strlen ( filename ) - 3 ) , " meta " , 4 ) ;
@ -223,7 +222,6 @@ static void LogTlsLogPem(LogTlsStoreLogThread *aft, const Packet *p, SSLState *s
end_fwrite_fp :
end_fwrite_fp :
fclose ( fp ) ;
fclose ( fp ) ;
SCFree ( aft - > enc_buf ) ;
if ( logging_dir_not_writable < LOGGING_WRITE_ISSUE_LIMIT ) {
if ( logging_dir_not_writable < LOGGING_WRITE_ISSUE_LIMIT ) {
SCLogWarning ( SC_ERR_FWRITE , " Unable to write certificate " ) ;
SCLogWarning ( SC_ERR_FWRITE , " Unable to write certificate " ) ;
logging_dir_not_writable + + ;
logging_dir_not_writable + + ;
@ -338,6 +336,9 @@ static TmEcode LogTlsStoreLogThreadDeinit(ThreadVars *t, void *data)
return TM_ECODE_OK ;
return TM_ECODE_OK ;
}
}
if ( aft - > enc_buf ! = NULL )
SCFree ( aft - > enc_buf ) ;
/* clear memory */
/* clear memory */
memset ( aft , 0 , sizeof ( LogTlsStoreLogThread ) ) ;
memset ( aft , 0 , sizeof ( LogTlsStoreLogThread ) ) ;