Only call SSL_shutdown if we have an SSL context.
This would otherwise cause trouble for listening sockets.
This commit is contained in:
parent
af7fcc1aa4
commit
d8b6916fe9
1 changed files with 2 additions and 1 deletions
|
@ -182,6 +182,7 @@ static SSL_CTX *ctx;
|
||||||
|
|
||||||
- (void)close
|
- (void)close
|
||||||
{
|
{
|
||||||
|
if (ssl != NULL)
|
||||||
SSL_shutdown(ssl);
|
SSL_shutdown(ssl);
|
||||||
|
|
||||||
[super close];
|
[super close];
|
||||||
|
|
Reference in a new issue