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 committed Sep 4, 2024
1 parent 7b1c350 commit ed0560d
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 @@ -1429,9 +1429,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 @@ -1464,7 +1464,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 ed0560d

Please sign in to comment.