~ubuntu-branches/ubuntu/precise/suricata/precise-proposed

« back to all changes in this revision

Viewing changes to src/detect-flowbits.c

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2010-06-19 17:39:14 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100619173914-5vkjfgz24mbia29z
Tags: 0.9.2-1
ImportedĀ UpstreamĀ versionĀ 0.9.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include "threads.h"
31
31
#include "flow.h"
32
32
#include "flow-bit.h"
 
33
#include "flow-util.h"
33
34
#include "detect-flowbits.h"
34
35
#include "util-spm.h"
35
36
 
 
37
#include "app-layer-parser.h"
 
38
 
36
39
#include "detect-parse.h"
37
40
#include "detect-engine.h"
38
41
#include "detect-engine-mpm.h"
 
42
#include "detect-engine-state.h"
39
43
 
40
44
#include "flow-bit.h"
41
45
#include "util-var-name.h"
714
718
    memset(&f, 0, sizeof(Flow));
715
719
    memset(&flowvar, 0, sizeof(GenericVar));
716
720
 
 
721
    FLOW_INITIALIZE(&f);
717
722
    p.flow = &f;
718
723
    p.flow->flowvar = &flowvar;
719
724
 
759
764
    DetectEngineCtxFree(de_ctx);
760
765
 
761
766
    if(gv) GenericVarFree(gv);
 
767
    FLOW_DESTROY(&f);
762
768
 
763
769
    return result;
764
770
end:
777
783
    }
778
784
 
779
785
    if(gv) GenericVarFree(gv);
780
 
 
 
786
    FLOW_DESTROY(&f);
781
787
    return result;
782
788
}
783
789
 
809
815
    memset(&f, 0, sizeof(Flow));
810
816
    memset(&flowvar, 0, sizeof(GenericVar));
811
817
 
 
818
    FLOW_INITIALIZE(&f);
812
819
    p.flow = &f;
813
820
    p.flow->flowvar = &flowvar;
814
821
 
858
865
    DetectEngineCtxFree(de_ctx);
859
866
 
860
867
    if(gv) GenericVarFree(gv);
 
868
    FLOW_DESTROY(&f);
861
869
 
862
870
    return result;
863
871
end:
876
884
    }
877
885
 
878
886
    if(gv) GenericVarFree(gv);
 
887
    FLOW_DESTROY(&f);
879
888
 
880
889
    return result;
881
890
}
908
917
    memset(&f, 0, sizeof(Flow));
909
918
    memset(&flowvar, 0, sizeof(GenericVar));
910
919
 
 
920
    FLOW_INITIALIZE(&f);
911
921
    p.flow = &f;
912
922
    p.flow->flowvar = &flowvar;
913
923
 
959
969
    DetectEngineCtxFree(de_ctx);
960
970
 
961
971
    if(gv) GenericVarFree(gv);
 
972
    FLOW_DESTROY(&f);
962
973
 
963
974
    return result;
964
975
end:
977
988
    }
978
989
 
979
990
    if(gv) GenericVarFree(gv);
 
991
    FLOW_DESTROY(&f);
980
992
 
981
993
    return result;
982
994
}