OpenSSL CVS Repository
http://cvs.openssl.org/
____________________________________________________________
________________
Server: cvs.openssl.org Name: Dr.
Stephen Henson
Root: /v/openssl/cvs Email: steve openssl.org
Module: openssl Date:
31-May-2007 14:39:22
Branch: HEAD Handle:
2007053113392100
Modified files:
openssl/crypto/evp evp_lib.c
Log:
Handle NULL parameter in some EVP utility functions.
Summary:
Revision Changes Path
1.13 +4 -0 openssl/crypto/evp/evp_lib.c
____________________________________________________________
________________
patch -p0 <<' .'
Index: openssl/crypto/evp/evp_lib.c
============================================================
================
$ cvs diff -u -r1.12 -r1.13 evp_lib.c
--- openssl/crypto/evp/evp_lib.c 27 Feb 2007 18:43:42
-0000 1.12
+++ openssl/crypto/evp/evp_lib.c 31 May 2007 12:39:21
-0000 1.13
 -255,11 +255,15 
int EVP_MD_size(const EVP_MD *md)
{
+ if (!md)
+ return -1;
return md->md_size;
}
const EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx)
{
+ if (!ctx)
+ return NULL;
return ctx->digest;
}
 .
____________________________________________________________
__________
OpenSSL Project http://www.openssl.org
CVS Repository Commit List
openssl-cvs openssl.org
Automated List Manager
majordomo openssl.org
|