Skip to content

Commit

Permalink
sasl_sspi: Fixed missing free of challenge buffer on SPN failure
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-caveman2k committed Aug 10, 2014
1 parent 343befa commit d804ff0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/curl_sasl_sspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,11 @@ CURLcode Curl_sasl_create_digest_md5_message(struct SessionHandle *data,

/* Generate our SPN */
spn = Curl_sasl_build_spn(service, data->easy_conn->host.name);
if(!spn)
if(!spn) {
Curl_safefree(chlg);

return CURLE_OUT_OF_MEMORY;
}

/* Populate our identity structure */
result = Curl_create_sspi_identity(userp, passwdp, &identity);
Expand Down

0 comments on commit d804ff0

Please sign in to comment.