Skip to content

Commit

Permalink
Fix: output value instead of pointer address
Browse files Browse the repository at this point in the history
 * improve comment phrasing
  • Loading branch information
bernhardreiter authored and koplas committed Sep 6, 2024
1 parent 4e09dbf commit 3f9a820
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/csaf_checker/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1445,9 +1445,9 @@ func (p *processor) checkWellknownSecurityDNS(domain string) error {
}

// checkPGPKeys checks if the OpenPGP keys are available and valid, fetches
// the remotely keys and compares the fingerprints.
// As a result of these a respective error messages are passed to badPGP method
// in case of errors. It returns nil if all checks are passed.
// the remote pubkeys and compares the fingerprints.
// As a result of these checks respective error messages are passed
// to badPGPs methods. It returns nil if all checks are passed.
func (p *processor) checkPGPKeys(_ string) error {

p.badPGPs.use()
Expand Down Expand Up @@ -1481,7 +1481,7 @@ func (p *processor) checkPGPKeys(_ string) error {
for i := range keys {
key := &keys[i]
if key.URL == nil {
p.badPGPs.error("Missing URL for fingerprint %x.", key.Fingerprint)
p.badPGPs.error("Missing URL for fingerprint %x.", *key.Fingerprint)
continue
}
up, err := url.Parse(*key.URL)
Expand Down

0 comments on commit 3f9a820

Please sign in to comment.