summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ipcpd/unicast/fa.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ipcpd/unicast/fa.c b/src/ipcpd/unicast/fa.c
index 8f268a9d..b2eed7e5 100644
--- a/src/ipcpd/unicast/fa.c
+++ b/src/ipcpd/unicast/fa.c
@@ -627,6 +627,11 @@ void fa_ecn_update(int eid,
pthread_rwlock_wrlock(&fa.flows_lock);
+ if (flow->r_eid == -1) {
+ pthread_rwlock_unlock(&fa.flows_lock);
+ return;
+ }
+
update = ca_ctx_update_rcv(flow->ctx, len, ecn, &ece);
pthread_rwlock_unlock(&fa.flows_lock);