mirror of
https://github.com/curl/curl.git
synced 2026-08-01 00:08:09 +03:00
urlapi: clear password buffer on error path
Reported by Copilot Bug: https://github.com/curl/curl/pull/21637#pullrequestreview-4809702512 Follow-up to112a8b5adf#21637 Follow-up to7c34365cce#21879 Closes #22432
This commit is contained in:
parent
112a8b5adf
commit
64f746ee1e
1 changed files with 1 additions and 0 deletions
|
|
@ -347,6 +347,7 @@ out:
|
|||
curlx_free(passwdp);
|
||||
curlx_free(optionsp);
|
||||
curlx_safefree(u->user);
|
||||
curlx_strzero(u->password);
|
||||
curlx_safefree(u->password);
|
||||
curlx_safefree(u->options);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue