Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak fix in ASIHTTPRequest #292

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Classes/ASIHTTPRequest.m
Expand Up @@ -1204,12 +1204,12 @@ - (void)startRequest
if (![self validatesSecureCertificate]) { if (![self validatesSecureCertificate]) {
// see: http://iphonedevelopment.blogspot.com/2010/05/nsstream-tcp-and-ssl.html // see: http://iphonedevelopment.blogspot.com/2010/05/nsstream-tcp-and-ssl.html


NSDictionary *sslProperties = [[NSDictionary alloc] initWithObjectsAndKeys: NSDictionary *sslProperties = [[[NSDictionary alloc] initWithObjectsAndKeys:
[NSNumber numberWithBool:YES], kCFStreamSSLAllowsExpiredCertificates, [NSNumber numberWithBool:YES], kCFStreamSSLAllowsExpiredCertificates,
[NSNumber numberWithBool:YES], kCFStreamSSLAllowsAnyRoot, [NSNumber numberWithBool:YES], kCFStreamSSLAllowsAnyRoot,
[NSNumber numberWithBool:NO], kCFStreamSSLValidatesCertificateChain, [NSNumber numberWithBool:NO], kCFStreamSSLValidatesCertificateChain,
kCFNull,kCFStreamSSLPeerName, kCFNull,kCFStreamSSLPeerName,
nil]; nil] autorelease];


CFReadStreamSetProperty((CFReadStreamRef)[self readStream], CFReadStreamSetProperty((CFReadStreamRef)[self readStream],
kCFStreamPropertySSLSettings, kCFStreamPropertySSLSettings,
Expand Down