Return the value of tlsext_status_type in the return not arg
authorMatt Caswell <matt@openssl.org>
Tue, 7 Jun 2016 14:13:40 +0000 (15:13 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 7 Jun 2016 16:05:52 +0000 (17:05 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/s3_lib.c

index 025c003b3e6ee177c951595134249de2f4ebcd64..a6709187a6af60e8e34ac8e67a2710d79987d9a1 100644 (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:
         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:
         break;
 
     case SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE: