diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-09-13 11:27:27 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-09-13 11:27:27 +0000 |
commit | 80afb40ae34594b23d3c2cbeb8f653aac4634eca (patch) | |
tree | cefa55bf1b9fe6af76ce2ac7be5cf09449bfca18 /crypto/cryptlib.c | |
parent | 3333428b44a0c4e21451cdaf6978933df3dd203a (diff) | |
download | openssl-new-80afb40ae34594b23d3c2cbeb8f653aac4634eca.tar.gz |
Submitted by: Julia Lawall <julia@diku.dk>
The functions ENGINE_ctrl(), OPENSSL_isservice(), EVP_PKEY_sign(),
CMS_get1_RecipientRequest() and RAND_bytes() can return <=0 on error fix
so the return code is checked correctly.
Diffstat (limited to 'crypto/cryptlib.c')
-rw-r--r-- | crypto/cryptlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index 41be45d620..9a39d7e171 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -847,7 +847,7 @@ void OPENSSL_showfatal (const char *fmta,...) #if defined(_WIN32_WINNT) && _WIN32_WINNT>=0x0333 /* this -------------v--- guards NT-specific calls */ - if (GetVersion() < 0x80000000 && OPENSSL_isservice()) + if (GetVersion() < 0x80000000 && OPENSSL_isservice() > 0) { HANDLE h = RegisterEventSource(0,_T("OPENSSL")); const TCHAR *pmsg=buf; ReportEvent(h,EVENTLOG_ERROR_TYPE,0,0,0,1,0,&pmsg,0); |