diff options
author | Sander Vrijders <[email protected]> | 2017-08-22 17:49:37 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-08-22 17:49:37 +0200 |
commit | 941a34c657f6860034315d11c79767dd37fba0c7 (patch) | |
tree | eb9c99b7ab287345f48166ca7769370025109728 /src/lib | |
parent | 743c2f69744fe3f0dac11e467a92ff5e4d80280b (diff) | |
download | ouroboros-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/lib')
-rw-r--r-- | src/lib/dev.c | 4 |
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); |