Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
d85e90a7
Commit
d85e90a7
authored
Mar 13, 2017
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tls: Only update OCSP staple if field is not nil (fixes #1514)
parent
d5cc10f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
caddytls/maintain.go
caddytls/maintain.go
+1
-1
No files found.
caddytls/maintain.go
View file @
d85e90a7
...
...
@@ -232,7 +232,7 @@ func UpdateOCSPStaples() {
// By this point, we've obtained the latest OCSP response.
// If there was no staple before, or if the response is updated, make
// sure we apply the update to all names on the certificate.
if
lastNextUpdate
.
IsZero
()
||
lastNextUpdate
!=
cert
.
OCSP
.
NextUpdate
{
if
cert
.
OCSP
!=
nil
&&
(
lastNextUpdate
.
IsZero
()
||
lastNextUpdate
!=
cert
.
OCSP
.
NextUpdate
)
{
log
.
Printf
(
"[INFO] Advancing OCSP staple for %v from %s to %s"
,
cert
.
Names
,
lastNextUpdate
,
cert
.
OCSP
.
NextUpdate
)
for
_
,
n
:=
range
cert
.
Names
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment