use XBADFILE for init in bad state

This commit is contained in:
toddouska
2012-08-13 10:59:34 -07:00
parent a39f540c5a
commit 4c66c4c3b5

View File

@@ -5937,7 +5937,7 @@ int CyaSSL_set_compression(CYASSL* ssl)
CYASSL_ENTER("CyaSSL_cmp_peer_cert_to_file");
if (ssl != NULL && fname != NULL)
{
XFILE file = NULL;
XFILE file = XBADFILE;
int sz = 0;
byte staticBuffer[FILE_BUFFER_SIZE];
byte* myBuffer = staticBuffer;