Merge pull request #1604 from letsencrypt/fix-fqdnset-exists
Fix RPC wrapper for FQDNSetExists
This commit is contained in:
commit
8e1b52392a
|
|
@ -464,7 +464,7 @@ func (ra *RegistrationAuthorityImpl) checkAuthorizations(names []string, registr
|
||||||
if authz == nil {
|
if authz == nil {
|
||||||
badNames = append(badNames, name)
|
badNames = append(badNames, name)
|
||||||
} else if authz.Expires == nil {
|
} else if authz.Expires == nil {
|
||||||
return fmt.Errorf("Found an authorization with a nil Expires field: id %d", authz.ID)
|
return fmt.Errorf("Found an authorization with a nil Expires field: id %s", authz.ID)
|
||||||
} else if authz.Expires.Before(now) {
|
} else if authz.Expires.Before(now) {
|
||||||
badNames = append(badNames, name)
|
badNames = append(badNames, name)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1627,6 +1627,6 @@ func (cac StorageAuthorityClient) FQDNSetExists(names []string) (bool, error) {
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
var exists fqdnSetExistsResponse
|
var exists fqdnSetExistsResponse
|
||||||
err = json.Unmarshal(response, exists)
|
err = json.Unmarshal(response, &exists)
|
||||||
return exists.Exists, err
|
return exists.Exists, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue