summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/flow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/flow.c b/src/lib/flow.c
index ab9ad802..04166298 100644
--- a/src/lib/flow.c
+++ b/src/lib/flow.c
@@ -59,9 +59,9 @@ int flow_set_opts(flow_t * flow, uint16_t opts)
pthread_mutex_lock(&flow->lock);
if ((opts & FLOW_O_ACCMODE) == FLOW_O_ACCMODE) {
+ flow->oflags = FLOW_O_DEFAULT;
pthread_mutex_unlock(&flow->lock);
LOG_WARN("Invalid flow options. Setting default.");
- opts = FLOW_O_DEFAULT;
return -1;
}