Skip to content

Commit

Permalink
detect/dataset: abort only in debug mode
Browse files Browse the repository at this point in the history
Ticket: 7195
(cherry picked from commit c55c7d6)
  • Loading branch information
catenacyber authored and victorjulien committed Sep 26, 2024
1 parent 72456d3 commit b5eb0c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/detect-dataset.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "util-misc.h"
#include "util-path.h"
#include "util-conf.h"
#include "util-validate.h"

#define DETECT_DATASET_CMD_SET 0
#define DETECT_DATASET_CMD_UNSET 1
Expand Down Expand Up @@ -103,7 +104,7 @@ int DetectDatasetBufferMatch(DetectEngineThreadCtx *det_ctx,
break;
}
default:
abort();
DEBUG_VALIDATE_BUG_ON("unknown dataset command");
}
return 0;
}
Expand Down

0 comments on commit b5eb0c9

Please sign in to comment.