summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-08-22 17:49:37 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2017-08-22 17:49:37 +0200
commit941a34c657f6860034315d11c79767dd37fba0c7 (patch)
treeeb9c99b7ab287345f48166ca7769370025109728 /src
parent743c2f69744fe3f0dac11e467a92ff5e4d80280b (diff)
downloadouroboros-941a34c657f6860034315d11c79767dd37fba0c7.tar.gz
ouroboros-941a34c657f6860034315d11c79767dd37fba0c7.zip
lib: Fix calling frct_clear in wrong function
frct_clear was called in ouroboros_fini instead of ouroboros_init.
Diffstat (limited to 'src')
-rw-r--r--src/lib/dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index a5caad3c..894a7bab 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -524,7 +524,7 @@ static void flow_fini(int fd)
shm_flow_set_close(ai.flows[fd].set);
if (ai.frcti[fd].used)
- frcti_clear(fd);
+ frcti_fini(fd);
flow_clear(fd);
}
@@ -618,7 +618,7 @@ int ouroboros_init(const char * ap_name)
for (i = 0; i < AP_MAX_FLOWS; ++i) {
flow_clear(i);
- frcti_fini(i);
+ frcti_clear(i);
}
ai.ports = malloc(sizeof(*ai.ports) * SYS_MAX_FLOWS);