Unverified Commit f014afb2 authored by Steven Fackler's avatar Steven Fackler Committed by GitHub
Browse files

Merge pull request #2360 from sfackler/fix-alpn-lifetimes

Fix lifetimes in ssl::select_next_proto
parents 1aff2801 8e6e30bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -709,7 +709,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;