Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/authors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Export known authors from master branch
run: git log --format="%an <%ae>" origin/master | sort | uniq > authors.txt
- name: Export authors from new commits
run: git log --format="%an <%ae>" origin/${GITHUB_BASE_REF}... | sort | uniq > commit-authors.txt
run: git log --format="%an <%ae>" ${{ github.event.pull_request.base.sha }}... | sort | uniq > commit-authors.txt
- name: Check new authors
run: |
touch new-authors.txt
Expand Down
8 changes: 4 additions & 4 deletions rust/src/mqtt/mqtt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ impl MQTTState {
let _pdu = Frame::new(
flow,
&stream_slice,
input,
current.len() as i64,
current,
(current.len() - rem.len()) as i64,
MQTTFrameType::Pdu as u8,
);
SCLogDebug!("request msg {:?}", msg);
Expand Down Expand Up @@ -518,8 +518,8 @@ impl MQTTState {
let _pdu = Frame::new(
flow,
&stream_slice,
input,
input.len() as i64,
current,
(current.len() - rem.len()) as i64,
MQTTFrameType::Pdu as u8,
);

Expand Down
2 changes: 1 addition & 1 deletion src/detect-engine-loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,8 @@ static TmEcode DetectLoaderThreadInit(ThreadVars *t, const void *initdata, void

DetectLoaderControl *loader = &loaders[ftd->instance];
SCMutexLock(&loader->m);
loader->tv = t;
SCMutexUnlock(&loader->m);
loader->tv = t;

return TM_ECODE_OK;
}
Expand Down
12 changes: 8 additions & 4 deletions src/detect-engine-loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ typedef struct DetectLoaderTask_ {

typedef struct DetectLoaderControl_ {
int id;
int result; /* 0 for ok, error otherwise */
ThreadVars *tv; /* loader threads threadvars - for waking them up */
SCMutex m;
TAILQ_HEAD(, DetectLoaderTask_) task_list;
ThreadVars *tv; /**< loader threads threadvars - for waking them up */

/** struct to group members and mutex */
struct {
SCMutex m; /**< mutex protects result and task_list */
int result; /**< 0 for ok, error otherwise */
TAILQ_HEAD(, DetectLoaderTask_) task_list;
};
} DetectLoaderControl;

int DetectLoaderQueueTask(int loader_id, LoaderFunc Func, void *func_ctx, LoaderFreeFunc FreeFunc);
Expand Down