Use correct mutex call in flow-vars code.

remotes/origin/master-1.0.x
Victor Julien 16 years ago
parent 43a1ae9a4b
commit eaaf0bd61c

@ -66,14 +66,14 @@ void FlowVarAddStr(Flow *f, uint8_t idx, uint8_t *value, uint16_t size) {
}
out:
mutex_unlock(&f->m);
SCMutexUnlock(&f->m);
}
/* add a flowvar to the flow, or update it */
void FlowVarAddInt(Flow *f, uint8_t idx, uint32_t value) {
//printf("Adding flow var \"%s\" with value(%" PRId32 ") \"%s\"\n", name, size, value);
mutex_lock(&f->m);
SCMutexLock(&f->m);
FlowVar *fv = FlowVarGet(f, idx);
if (fv == NULL) {

Loading…
Cancel
Save