Skip to content

Commit f014afb

Browse files
authored
Merge pull request #2360 from sfackler/fix-alpn-lifetimes
Fix lifetimes in ssl::select_next_proto
2 parents 1aff280 + 8e6e30b commit f014afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openssl/src/ssl/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ cfg_if! {
709709
///
710710
/// [`SslContextBuilder::set_alpn_protos`]: struct.SslContextBuilder.html#method.set_alpn_protos
711711
#[corresponds(SSL_select_next_proto)]
712-
pub fn select_next_proto<'a>(server: &[u8], client: &'a [u8]) -> Option<&'a [u8]> {
712+
pub fn select_next_proto<'a>(server: &'a [u8], client: &'a [u8]) -> Option<&'a [u8]> {
713713
unsafe {
714714
let mut out = ptr::null_mut();
715715
let mut outlen = 0;

0 commit comments

Comments
 (0)