projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
565c153
)
PR: 2529
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 25 May 2011 15:16:01 +0000
(15:16 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 25 May 2011 15:16:01 +0000
(15:16 +0000)
Submitted by: Marcus Meissner <meissner@suse.de>
Reviewed by: steve
Call ssl_new() to reallocate SSL BIO internals if we want to replace
the existing internal SSL structure.
ssl/bio_ssl.c
patch
|
blob
|
history
diff --git
a/ssl/bio_ssl.c
b/ssl/bio_ssl.c
index af319af302a1bc4a56f649e0522d14a6f43f6fdb..eedac8a3fcfccef8aae1ef4831868e00a18d515f 100644
(file)
--- a/
ssl/bio_ssl.c
+++ b/
ssl/bio_ssl.c
@@
-348,7
+348,11
@@
static long ssl_ctrl(BIO *b, int cmd, long num, void *ptr)
break;
case BIO_C_SET_SSL:
if (ssl != NULL)
+ {
ssl_free(b);
+ if (!ssl_new(b))
+ return 0;
+ }
b->shutdown=(int)num;
ssl=(SSL *)ptr;
((BIO_SSL *)b->ptr)->ssl=ssl;