Merge pull request #1604 from letsencrypt/fix-fqdnset-exists

Fix RPC wrapper for FQDNSetExists
This commit is contained in:
Kane York 2016-03-14 15:06:23 -07:00
commit 8e1b52392a
2 changed files with 2 additions and 2 deletions

View File

@ -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)
} }

View File

@ -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
} }