Return the value of tlsext_status_type in the return not arg

Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
Matt Caswell 2016-06-07 15:13:40 +01:00
parent 4300aaf351
commit 93a9d5975e

View File

@ -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: