Bugfixes provided by "Stephen Hinton" <shinton@netopia.com>.
[openssl.git] / crypto / bio / bss_bio.c
index 4e46c6c119de971bd21a0071448d33977938255a..f666c47f4e17258dbcd871c15f4f563e76813c8c 100644 (file)
@@ -474,7 +474,8 @@ static long bio_ctrl(BIO *bio, int cmd, long num, void *ptr)
                break;
 
        case BIO_C_GET_WRITE_BUF_SIZE:
-               num = (long) b->size;
+               ret = (long) b->size;
+               break;
 
        case BIO_C_MAKE_BIO_PAIR:
                {