Skip to content

Commit

Permalink
webserver: Zero key after storing.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGruffins authored and chappjc committed Feb 22, 2023
1 parent 900574b commit 0d42ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/webserver/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -847,8 +847,8 @@ func (s *WebServer) apiChangeAppPass(w http.ResponseWriter, r *http.Request) {
log.Errorf("unable to cache password: %w", err)
clearCookie(pwKeyCK, w)
} else {
zero(key)
setCookie(pwKeyCK, hex.EncodeToString(key), w)
zero(key)
}
}

Expand Down

0 comments on commit 0d42ab6

Please sign in to comment.