Skip to content

Commit 60bcc36

Browse files
committed
Fix panic if HPKPPolicy is empty
1 parent 2c526c1 commit 60bcc36

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

cli/cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535

3636
const (
3737
APP = "SSLScan Client"
38-
VER = "2.5.0"
38+
VER = "2.6.0"
3939
DESC = "Command-line client for the SSL Labs API"
4040
)
4141

cli/details.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,7 @@ func print0RTTStatus(status int) {
11261126
func printPolicyInfo(policy *sslscan.HPKPPolicy) {
11271127
if policy == nil {
11281128
fmtc.Println("No")
1129+
return
11291130
}
11301131

11311132
switch policy.Status {

common/sslcli.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
Summary: Pretty awesome command-line client for public SSLLabs API
4646
Name: sslcli
47-
Version: 2.5.0
47+
Version: 2.6.0
4848
Release: 0%{?dist}
4949
Group: Applications/System
5050
License: EKOL
@@ -119,6 +119,10 @@ fi
119119
################################################################################
120120

121121
%changelog
122+
* Wed May 06 2020 Anton Novojilov <andy@essentialkaos.com> - 2.6.0-0
123+
- Fixed panic if HPKPPolicy is empty
124+
- ek package updated to v12
125+
122126
* Fri Jan 03 2020 Anton Novojilov <andy@essentialkaos.com> - 2.5.0-0
123127
- Updated for compatibility with the latest version of SSLLabs API
124128

0 commit comments

Comments
 (0)