ObjFW  Diff

Differences From Artifact [d6f41e909e]:

To Artifact [d04b51f1a5]:


127
128
129
130
131
132
133

134
135
136
137
138
139
140
141
142
{
	self = [super init];

	@try {
		if ([socket isKindOfClass: [OFTLSSocket class]])
			@throw [OFInvalidArgumentException exception];


		if ((_socket = dup(socket->_socket)) == OFInvalidSocketHandle)
			@throw [OFInitializationFailedException exception];

		_verifiesCertificates = true;
	} @catch (id e) {
		[self release];
		@throw e;
	}








>
|
<







127
128
129
130
131
132
133
134
135

136
137
138
139
140
141
142
{
	self = [super init];

	@try {
		if ([socket isKindOfClass: [OFTLSSocket class]])
			@throw [OFInvalidArgumentException exception];

		_socket = socket->_socket;
		socket->_socket = OFInvalidSocketHandle;


		_verifiesCertificates = true;
	} @catch (id e) {
		[self release];
		@throw e;
	}