summaryrefslogtreecommitdiffstats
path: root/src/vcl
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-05-25 18:17:03 +0000
committerDave Barach <openvpp@barachs.net>2020-05-25 21:03:41 +0000
commita4dac8af0eb4271db0c528a00beca58f41b51c95 (patch)
tree2b5b6a394236836eecec41f1be010d07d44e54b5 /src/vcl
parentef29fa43cef738ba359922b65d38873147e48a22 (diff)
vcl: fix udp connected check
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I83dafe10cdc78fbb9a751f32155cd84d281b12d9
Diffstat (limited to 'src/vcl')
-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 c4ec02e8306..77f2be7bebe 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;
}