summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-05-25 18:17:03 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-06-03 17:55:37 +0000
commit201c8e4d2aed9b9e2c99ee848d8ed4c89fd9031e (patch)
tree01a84b1b3d526685ce2a5dda53609f5886f39882
parent4ee279b03e07b017baacd9714ed4b4f7641235ef (diff)
vcl: fix udp connected check
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I83dafe10cdc78fbb9a751f32155cd84d281b12d9 (cherry picked from commit a4dac8af0eb4271db0c528a00beca58f41b51c95)
-rw-r--r--src/vcl/vcl_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h
index de3304ff222..593e63f3b09 100644
--- a/src/vcl/vcl_private.h
+++ b/src/vcl/vcl_private.h
@@ -529,7 +529,7 @@ static inline u8
vcl_session_is_cl (vcl_session_t * s)
{
if (s->session_type == VPPCOM_PROTO_UDP)
- return 1;
+ return !(s->flags & VCL_SESSION_F_CONNECTED);
return 0;
}