projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Gcc over-optimizes PadLock AES CFB codepath, tell it not to.
[openssl.git]
/
crypto
/
evp
/
bio_md.c
diff --git
a/crypto/evp/bio_md.c
b/crypto/evp/bio_md.c
index 76ff9fe815a0ff5366b77d34a2017adc866f8786..a6d35d8bda3436659977eb58bea8dd574fdf8ae0 100644
(file)
--- a/
crypto/evp/bio_md.c
+++ b/
crypto/evp/bio_md.c
@@
-192,13
+192,9
@@
static long md_ctrl(BIO *b, int cmd, long num, void *ptr)
ret=0;
break;
case BIO_C_GET_MD_CTX:
- if (b->init)
- {
- pctx=ptr;
- *pctx=ctx;
- }
- else
- ret=0;
+ pctx=ptr;
+ *pctx=ctx;
+ b->init = 1;
break;
case BIO_C_DO_STATE_MACHINE:
BIO_clear_retry_flags(b);