summaryrefslogtreecommitdiff
path: root/lib/curl_schannel.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-06-25 21:48:20 +0200
committerYang Tse <yangsita@gmail.com>2012-06-25 21:48:20 +0200
commitd025af9bb57672d95b2bdef9af68e06fb8ecccf7 (patch)
tree03692ceb0f948e6efd0b0741119511ef64c924a5 /lib/curl_schannel.c
parentf99f02bb05ad20e82f029ac2f1403e727228d4f5 (diff)
downloadcurl-d025af9bb57672d95b2bdef9af68e06fb8ecccf7.tar.gz
curl_schannel.c: Remove redundant NULL assignments following Curl_safefree()
Diffstat (limited to 'lib/curl_schannel.c')
-rw-r--r--lib/curl_schannel.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/curl_schannel.c b/lib/curl_schannel.c
index 5ddaabd80..40eabe0b3 100644
--- a/lib/curl_schannel.c
+++ b/lib/curl_schannel.c
@@ -201,7 +201,6 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
failf(data, "schannel: AcquireCredentialsHandle failed: %s",
Curl_sspi_strerror(conn, sspi_status));
Curl_safefree(connssl->cred);
- connssl->cred = NULL;
return CURLE_SSL_CONNECT_ERROR;
}
}
@@ -250,7 +249,6 @@ schannel_connect_step1(struct connectdata *conn, int sockindex)
failf(data, "schannel: initial InitializeSecurityContext failed: %s",
Curl_sspi_strerror(conn, sspi_status));
Curl_safefree(connssl->ctxt);
- connssl->ctxt = NULL;
return CURLE_SSL_CONNECT_ERROR;
}
@@ -1144,14 +1142,12 @@ int Curl_schannel_shutdown(struct connectdata *conn, int sockindex)
if(connssl->ctxt) {
s_pSecFn->DeleteSecurityContext(&connssl->ctxt->ctxt_handle);
Curl_safefree(connssl->ctxt);
- connssl->ctxt = NULL;
}
}
/* free internal buffer for received encrypted data */
if(connssl->encdata_buffer != NULL) {
Curl_safefree(connssl->encdata_buffer);
- connssl->encdata_buffer = NULL;
connssl->encdata_length = 0;
connssl->encdata_offset = 0;
}
@@ -1159,7 +1155,6 @@ int Curl_schannel_shutdown(struct connectdata *conn, int sockindex)
/* free internal buffer for received decrypted data */
if(connssl->decdata_buffer != NULL) {
Curl_safefree(connssl->decdata_buffer);
- connssl->decdata_buffer = NULL;
connssl->decdata_length = 0;
connssl->decdata_offset = 0;
}