From: jsing Date: Mon, 29 Mar 2021 16:57:38 +0000 (+0000) Subject: Remove pointless assignment in SSL_get0_alpn_selected(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=259b748b8e3ddf6ba6d551fedd171c9c98c0d8bf;p=openbsd Remove pointless assignment in SSL_get0_alpn_selected(). ok tb@ --- diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c index 892922d7611..44cc1ed3237 100644 --- a/lib/libssl/ssl_lib.c +++ b/lib/libssl/ssl_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_lib.c,v 1.254 2021/03/29 16:46:09 jsing Exp $ */ +/* $OpenBSD: ssl_lib.c,v 1.255 2021/03/29 16:57:38 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1716,9 +1716,6 @@ void SSL_get0_alpn_selected(const SSL *ssl, const unsigned char **data, unsigned int *len) { - *data = NULL; - *len = 0; - *data = ssl->s3->internal->alpn_selected; *len = ssl->s3->internal->alpn_selected_len; }