summaryrefslogtreecommitdiff
path: root/src/lib/flow.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-03-30 13:48:57 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-03-30 13:48:57 +0200
commitdd20c175f10c04bf5abd0ca764ededaa7a4ac621 (patch)
treeb2e48a478924a69759a315fa0d505627760fa64f /src/lib/flow.c
parent8dfa06b867baac47eabc6af3549c2c6a276670b7 (diff)
downloadouroboros-dd20c175f10c04bf5abd0ca764ededaa7a4ac621.tar.gz
ouroboros-dd20c175f10c04bf5abd0ca764ededaa7a4ac621.zip
lib: further fixes to flow API
FLOW_O_INVALID now defined in terms of conflicting options bugfix in setopts
Diffstat (limited to 'src/lib/flow.c')
-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;
}