diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-01-04 11:12:22 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-01-04 11:12:22 +0000 |
commit | 30c7790a512172b5254775fbad8f601d5638c1e6 (patch) | |
tree | 39a0ceb2db8fcd07e8b82bc107e5cc2a05df9d24 /ossl_x509req.c | |
parent | 99d5a24aa57c9eb4ac792a36e0947dc5df84fe8c (diff) | |
download | ruby-openssl-history-30c7790a512172b5254775fbad8f601d5638c1e6.tar.gz |
* Further checking (Check_SafeStr, memory leaks)
Diffstat (limited to 'ossl_x509req.c')
-rw-r--r-- | ossl_x509req.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ossl_x509req.c b/ossl_x509req.c index 6f8c2fa..79bad9e 100644 --- a/ossl_x509req.c +++ b/ossl_x509req.c @@ -126,6 +126,7 @@ ossl_x509req_initialize(int argc, VALUE *argv, VALUE self) req = X509_REQ_new(); break; case T_STRING: + Check_SafeStr(buffer); if (!(in = BIO_new_mem_buf(RSTRING(buffer)->ptr, -1))) { rb_raise(eX509RequestError, "%s", ossl_error()); } @@ -428,8 +429,6 @@ static VALUE ossl_x509req_add_attribute(VALUE self, VALUE attr) { ossl_x509req *reqp = NULL; - int i = 0; - VALUE item; GetX509Req(self, reqp); |