diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/openssl/ossl_ssl_session.c | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,7 @@ +Sat Mar 12 04:12:41 2011 Tanaka Akira <akr@fsij.org> + + * ext/openssl/ossl_ssl_session.c: parenthesize macro arguments. + Sat Mar 12 02:27:07 2011 Tadayoshi Funaba <tadf@dotrb.org> * ext/date/date_core.c ({d,dt}_lite_marshal_load): checks the given argument. diff --git a/ext/openssl/ossl_ssl_session.c b/ext/openssl/ossl_ssl_session.c index 48b3927f8f..d9db9a67fa 100644 --- a/ext/openssl/ossl_ssl_session.c +++ b/ext/openssl/ossl_ssl_session.c @@ -5,15 +5,15 @@ #include "ossl.h" #define GetSSLSession(obj, sess) do { \ - Data_Get_Struct(obj, SSL_SESSION, sess); \ - if (!sess) { \ + Data_Get_Struct((obj), SSL_SESSION, (sess)); \ + if (!(sess)) { \ ossl_raise(rb_eRuntimeError, "SSL Session wasn't initialized."); \ } \ } while (0) #define SafeGetSSLSession(obj, sess) do { \ - OSSL_Check_Kind(obj, cSSLSession); \ - GetSSLSession(obj, sess); \ + OSSL_Check_Kind((obj), cSSLSession); \ + GetSSLSession((obj), (sess)); \ } while (0) |