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
This commit is contained in:
liuyacan
2021-08-30 13:24:53 +08:00
committed by Florin Coras
parent 98078ab88d
commit 276675e2a3

View File

@ -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