Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1effb29
)
tls: fix ho leak on tcp connect return
35/40235/5
author
Florin Coras
<fcoras@cisco.com>
Tue, 23 Jan 2024 02:27:43 +0000
(18:27 -0800)
committer
Dave Barach
<vpp@barachs.net>
Tue, 23 Jan 2024 17:50:52 +0000
(17:50 +0000)
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I40345d635b8067dcffbbdd39d0a5b0c0934a6d54
src/vnet/tls/tls.c
patch
|
blob
|
history
diff --git
a/src/vnet/tls/tls.c
b/src/vnet/tls/tls.c
index
7c84f15
..
a27d731
100644
(file)
--- a/
src/vnet/tls/tls.c
+++ b/
src/vnet/tls/tls.c
@@
-824,7
+824,10
@@
tls_connect (transport_endpoint_cfg_t * tep)
cargs->api_context = ctx_index;
cargs->sep_ext.ns_index = app->ns_index;
if ((rv = vnet_connect (cargs)))
- return rv;
+ {
+ tls_ctx_half_open_free (ctx_index);
+ return rv;
+ }
/* Track half-open tcp session in case we need to clean it up */
ctx->tls_session_handle = cargs->sh;