diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2022-03-31 08:58:23 +0200 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2022-04-01 08:09:22 +0200 |
commit | ccfcc0efcff8b3460a7870541df09d537bfeae8f (patch) | |
tree | f13dbe9792a9324c408b38bc3d444361b0cd9f58 /src/lib/shm_flow_set.c | |
parent | 369400aab2b464b2ef11d30547f5ca7eee2a4b2a (diff) | |
download | ouroboros-ccfcc0efcff8b3460a7870541df09d537bfeae8f.tar.gz ouroboros-ccfcc0efcff8b3460a7870541df09d537bfeae8f.zip |
lib: Fix fqueue_next handling of deallocated flows
If a flow was deallocated while there were still unprocessed events in
an fqueue, it would cause a SEGV in fqueue_next because it was not
checking the validity of the returned flow descriptor.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/shm_flow_set.c')
-rw-r--r-- | src/lib/shm_flow_set.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/shm_flow_set.c b/src/lib/shm_flow_set.c index 25e7e32b..f8c6bb2c 100644 --- a/src/lib/shm_flow_set.c +++ b/src/lib/shm_flow_set.c @@ -314,7 +314,6 @@ void shm_flow_set_notify(struct shm_flow_set * set, return; } - e = fqueue_ptr(set, set->mtable[flow_id]) + set->heads[set->mtable[flow_id]]; |