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 30f5ddfe6d2dddc7d05ebd222b0acbc624884b61..6d3edba5f72873faf97619b1cbc372a815e0e8c2 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;
 
        }