mirror of https://github.com/OISF/suricata
detect/prefilter: fix coverity issue
** CID 1646448: Null pointer dereferences (NULL_RETURNS) /src/detect-engine-prefilter.c: 944 in SetupNonPrefilter() ________________________________________________________________________________________________________ *** CID 1646448: Null pointer dereferences (NULL_RETURNS) /src/detect-engine-prefilter.c: 944 in SetupNonPrefilter() 938 const DetectBufferType *buf = DetectEngineBufferTypeGetById(de_ctx, list_id); 939 /* for now, exclude app-layer-events, as they are not tied to a specific 940 * progress value like other keywords. */ 941 SCLogDebug("list_id %d buf %p", list_id, buf); 942 if (list_id == app_events_list_id) 943 continue; >>> CID 1646448: Null pointer dereferences (NULL_RETURNS) >>> Dereferencing "buf", which is known to be "NULL". 944 if (buf->packet) { 945 SCLogDebug("packet buf"); 946 /* packet is handled below */ 947 pkt_non_pf = true; 948 } else if (buf->frame) { 949 for (DetectEngineFrameInspectionEngine *f = de_ctx->frame_inspect_engines;pull/13003/head
parent
1f57bd2c1b
commit
679d25ccd2
Loading…
Reference in New Issue