summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-08-22 15:48:36 +0000
committerdimitri staessens <dimitri.staessens@ugent.be>2017-08-22 15:48:36 +0000
commit831c4be1fb1c46cb46b2538059796c8fec5a7543 (patch)
treeeb9c99b7ab287345f48166ca7769370025109728
parent49eeec30ebc8b050dd69926047c2baebebe7f550 (diff)
parent941a34c657f6860034315d11c79767dd37fba0c7 (diff)
downloadouroboros-831c4be1fb1c46cb46b2538059796c8fec5a7543.tar.gz
ouroboros-831c4be1fb1c46cb46b2538059796c8fec5a7543.zip
Merged in sandervrijders/ouroboros/be-crc (pull request #562)
lib: Fix calling frct_clear in wrong function
-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);