Skip to content

Commit 7df747e

Browse files
Remove comments from the SSPI teardown guards
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 2b93941 commit 7df747e

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

‎lib/vauth/digest_sspi.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,7 @@ void Curl_auth_digest_cleanup(struct digestdata *digest)
642642
/* Reset any variables */
643643
digest->input_token_len = 0;
644644

645-
/* Delete security context; Curl_pSecFn is NULL after
646-
curl_global_cleanup(), the OS then reclaims handles at process exit */
645+
/* Delete security context */
647646
if(digest->http_context) {
648647
if(Curl_pSecFn)
649648
Curl_pSecFn->DeleteSecurityContext(digest->http_context);

‎lib/vauth/krb5_sspi.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,7 @@ CURLcode Curl_auth_create_gssapi_security_message(struct Curl_easy *data,
425425
*/
426426
void Curl_auth_cleanup_gssapi(struct kerberos5data *krb5)
427427
{
428-
/* Free our security context; Curl_pSecFn is NULL after
429-
curl_global_cleanup(), the OS then reclaims handles at process exit */
428+
/* Free our security context */
430429
if(krb5->context) {
431430
if(Curl_pSecFn)
432431
Curl_pSecFn->DeleteSecurityContext(krb5->context);

‎lib/vauth/ntlm_sspi.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,7 @@ CURLcode Curl_auth_create_ntlm_type3_message(struct Curl_easy *data,
322322
*/
323323
void Curl_auth_cleanup_ntlm(struct ntlmdata *ntlm)
324324
{
325-
/* Free our security context; Curl_pSecFn is NULL after
326-
curl_global_cleanup(), the OS then reclaims handles at process exit */
325+
/* Free our security context */
327326
if(ntlm->context) {
328327
if(Curl_pSecFn)
329328
Curl_pSecFn->DeleteSecurityContext(ntlm->context);

‎lib/vauth/spnego_sspi.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,7 @@ CURLcode Curl_auth_create_spnego_message(struct negotiatedata *nego,
310310
*/
311311
void Curl_auth_cleanup_spnego(struct negotiatedata *nego)
312312
{
313-
/* Free our security context; Curl_pSecFn is NULL after
314-
curl_global_cleanup(), the OS then reclaims handles at process exit */
313+
/* Free our security context */
315314
if(nego->context) {
316315
if(Curl_pSecFn)
317316
Curl_pSecFn->DeleteSecurityContext(nego->context);

0 commit comments

Comments
 (0)