return failure code if I/O error
authorDr. Stephen Henson <steve@openssl.org>
Tue, 6 Mar 2012 19:08:30 +0000 (19:08 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 6 Mar 2012 19:08:30 +0000 (19:08 +0000)
crypto/cms/cms_io.c

index 30f5ddf..6d3edba 100644 (file)
@@ -112,7 +112,7 @@ static int cms_output_data(BIO *out, BIO *data, ASN1_VALUE *val, int flags,
                cmsbio = tmpbio;
                }
 
-       return 1;
+       return r;
 
        }