Commit title: Fix a segfault and several bugs

Description:
    - segfault in analyse with the alert_level_test to assign a value to
      the string error and protocol
    - no detection of CONNEXION ATTEMPT some times fixed