File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -604,9 +604,11 @@ func (ssa *SQLStorageAuthorityRO) GetAuthorizations2(ctx context.Context, req *s
604
604
// TODO(#8111): Consider reducing the volume of data in this map.
605
605
authzModelMap := make (map [identifier.ACMEIdentifier ]authzModel , len (authzModels ))
606
606
for _ , am := range authzModels {
607
- if req .Profile != "" && am . CertificateProfileName != & req . Profile {
607
+ if req .Profile != "" {
608
608
// Don't return authzs whose profile doesn't match that requested.
609
- continue
609
+ if am .CertificateProfileName != nil || * am .CertificateProfileName != req .Profile {
610
+ continue
611
+ }
610
612
}
611
613
// If there is an existing authorization in the map, only replace it with
612
614
// one which has a "better" validation state (valid instead of pending).
@@ -798,9 +800,11 @@ func (ssa *SQLStorageAuthorityRO) GetValidAuthorizations2(ctx context.Context, r
798
800
// TODO(#8111): Consider reducing the volume of data in this map.
799
801
authzMap := make (map [identifier.ACMEIdentifier ]authzModel , len (authzModels ))
800
802
for _ , am := range authzModels {
801
- if req .Profile != "" && am . CertificateProfileName != & req . Profile {
803
+ if req .Profile != "" {
802
804
// Don't return authzs whose profile doesn't match that requested.
803
- continue
805
+ if am .CertificateProfileName == nil || * am .CertificateProfileName != req .Profile {
806
+ continue
807
+ }
804
808
}
805
809
// If there is an existing authorization in the map only replace it with one
806
810
// which has a later expiry.
You can’t perform that action at this time.
0 commit comments