aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl/ldp.c
diff options
context:
space:
mode:
authorliuyacan <liuyacan@corp.netease.com>2021-08-30 13:24:53 +0800
committerFlorin Coras <florin.coras@gmail.com>2021-08-30 18:46:09 +0000
commit276675e2a3907cf38ac097a070fada82be1c2d5a (patch)
tree62fcdca6a8e2424037a762533c0086fad5ed3aa5 /src/vcl/ldp.c
parent98078ab88d93de4e44427c018cd3a74fc0ce8234 (diff)
vcl: fix vlsh conversion error
vlsh may not belong to the current vcl worker. Type: fix Signed-off-by: liuyacan <liuyacan@corp.netease.com> Change-Id: I75f962313e538fcd2b1cc6dffca53997648ca43e
Diffstat (limited to 'src/vcl/ldp.c')
-rw-r--r--src/vcl/ldp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vcl/ldp.c b/src/vcl/ldp.c
index 4b21c7d3c7a..5f1eeb9d540 100644
--- a/src/vcl/ldp.c
+++ b/src/vcl/ldp.c
@@ -967,9 +967,7 @@ assign_cert_key_pair (vls_handle_t vlsh)
return -1;
ckp_len = sizeof (ldp->ckpair_index);
- return vppcom_session_attr (vlsh_to_session_index (vlsh),
- VPPCOM_ATTR_SET_CKPAIR, &ldp->ckpair_index,
- &ckp_len);
+ return vls_attr (vlsh, VPPCOM_ATTR_SET_CKPAIR, &ldp->ckpair_index, &ckp_len);
}
int