Fix lifetimes in ssl:select_next_proto

Signed-off-by: archane <zhaipeizhe@huawei.com>
Change-Id: I342cfafc4ce02daf5f9b1d68eac1377f4e1b0737
This commit is contained in:
archane
2025-02-07 11:44:52 +08:00
parent 278f52b897
commit cb798e1d4a
+1 -1
View File
@@ -682,7 +682,7 @@ cfg_if! {
///
/// [`SslContextBuilder::set_alpn_protos`]: struct.SslContextBuilder.html#method.set_alpn_protos
#[corresponds(SSL_select_next_proto)]
pub fn select_next_proto<'a>(server: &[u8], client: &'a [u8]) -> Option<&'a [u8]> {
pub fn select_next_proto<'a>(server: &'a [u8], client: &'a [u8]) -> Option<&'a [u8]> {
unsafe {
let mut out = ptr::null_mut();
let mut outlen = 0;