diff options
-rw-r--r-- | lib/wrappers/openssl.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/wrappers/openssl.nim b/lib/wrappers/openssl.nim index b7f18ad79..bea96127d 100644 --- a/lib/wrappers/openssl.nim +++ b/lib/wrappers/openssl.nim @@ -418,9 +418,9 @@ else: sslState {.global.} = cast[proc(ssl: SslPtr): cint {.cdecl, gcsafe.}](sslSymNullable("SSL_state")) if not theProc.isNil: - theProc(ssl) + result = theProc(ssl) elif not sslState.isNil: - sslState(ssl) and SSL_ST_INIT + result = sslState(ssl) and SSL_ST_INIT else: raiseInvalidLibrary MainProc |