projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure applications free up pkey structures and add netscape extension
[openssl.git]
/
crypto
/
x509
/
x509type.c
diff --git
a/crypto/x509/x509type.c
b/crypto/x509/x509type.c
index 05d6919d6ae16371d8125017b10e34a1c6aa0c58..5274ded737dac6cee86f1f741364f8a85d7f669a 100644
(file)
--- a/
crypto/x509/x509type.c
+++ b/
crypto/x509/x509type.c
@@
-1,5
+1,5
@@
/* crypto/x509/x509type.c */
/* crypto/x509/x509type.c */
-/* Copyright (C) 1995-199
7
Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-199
8
Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* All rights reserved.
*
* This package is an SSL implementation written
@@
-108,8
+108,9
@@
EVP_PKEY *pkey;
break;
}
break;
}
- if (EVP_PKEY_size(pk
ey
) <= 512)
+ if (EVP_PKEY_size(pk) <= 512)
ret|=EVP_PKT_EXP;
ret|=EVP_PKT_EXP;
+ if(pkey==NULL) EVP_PKEY_free(pk);
return(ret);
}
return(ret);
}