From: Matt Caswell Date: Tue, 7 Jun 2016 14:13:40 +0000 (+0100) Subject: Return the value of tlsext_status_type in the return not arg X-Git-Tag: OpenSSL_1_1_0-pre6~528 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=93a9d5975ea1761247e44ee697d991aa88919c96 Return the value of tlsext_status_type in the return not arg Reviewed-by: Rich Salz --- diff --git a/ssl/s3_lib.c b/ssl/s3_lib.c index 025c003b3e..a6709187a6 100644 --- a/ssl/s3_lib.c +++ b/ssl/s3_lib.c @@ -2972,8 +2972,7 @@ long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) break; case SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE: - *(int *)parg = s->tlsext_status_type; - ret = 1; + ret = s->tlsext_status_type; break; case SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE: