From 4c3e68b167d902f3037012db2af0561a368195b7 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Sat, 22 Jan 2005 20:28:02 +0000 Subject: * ext/openssl/ossl_ocsp.c (ossl_ocspreq_to_der): should call GetOCSPReq at first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/ossl_ocsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/openssl/ossl_ocsp.c') diff --git a/ext/openssl/ossl_ocsp.c b/ext/openssl/ossl_ocsp.c index f88f749941..b1e721c24c 100644 --- a/ext/openssl/ossl_ocsp.c +++ b/ext/openssl/ossl_ocsp.c @@ -261,11 +261,11 @@ ossl_ocspreq_to_der(VALUE self) unsigned char *p; long len; + GetOCSPReq(self, req); if((len = i2d_OCSP_REQUEST(req, NULL)) <= 0) ossl_raise(eOCSPError, NULL); str = rb_str_new(0, len); p = RSTRING(str)->ptr; - GetOCSPReq(self, req); if(i2d_OCSP_REQUEST(req, &p) <= 0) ossl_raise(eOCSPError, NULL); ossl_str_adjust(str, p); -- cgit v1.2.3