We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a48c4bd commit 0714713Copy full SHA for 0714713
GCD/GCDAsyncSocket.m
@@ -6031,10 +6031,17 @@ - (void)ssl_startTLS
6031
LogTrace();
6032
6033
LogVerbose(@"Starting TLS (via SecureTransport)...");
6034
-
+
6035
OSStatus status;
6036
6037
GCDAsyncSpecialPacket *tlsPacket = (GCDAsyncSpecialPacket *)currentRead;
6038
+ if (tlsPacket == nil) // Code to quiet the analyzer
6039
+ {
6040
+ NSAssert(NO, @"Logic error");
6041
6042
+ [self closeWithError:[self otherError:@"Logic error"]];
6043
+ return;
6044
+ }
6045
NSDictionary *tlsSettings = tlsPacket->tlsSettings;
6046
6047
// Create SSLContext, and setup IO callbacks and connection ref
0 commit comments