1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 18:15:42 +01:00

Fix: output value instead of pointer address

* improve comment phrasing
This commit is contained in:
Bernhard Reiter 2024-09-04 16:50:58 +02:00 committed by koplas
parent 4e09dbf41f
commit 3f9a820f66

View file

@ -1445,9 +1445,9 @@ func (p *processor) checkWellknownSecurityDNS(domain string) error {
} }
// checkPGPKeys checks if the OpenPGP keys are available and valid, fetches // checkPGPKeys checks if the OpenPGP keys are available and valid, fetches
// the remotely keys and compares the fingerprints. // the remote pubkeys and compares the fingerprints.
// As a result of these a respective error messages are passed to badPGP method // As a result of these checks respective error messages are passed
// in case of errors. It returns nil if all checks are passed. // to badPGPs methods. It returns nil if all checks are passed.
func (p *processor) checkPGPKeys(_ string) error { func (p *processor) checkPGPKeys(_ string) error {
p.badPGPs.use() p.badPGPs.use()
@ -1481,7 +1481,7 @@ func (p *processor) checkPGPKeys(_ string) error {
for i := range keys { for i := range keys {
key := &keys[i] key := &keys[i]
if key.URL == nil { 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 continue
} }
up, err := url.Parse(*key.URL) up, err := url.Parse(*key.URL)