From 4cc2f99b730cec9b317227f995309aab348aad5c Mon Sep 17 00:00:00 2001 From: "Guy M. Allard" Date: Sun, 17 Jun 2018 11:42:37 -0400 Subject: [PATCH] Correctly handle *tlsconfig.Time() --- sngecomm/utilities.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sngecomm/utilities.go b/sngecomm/utilities.go index 911d3a0..0dce95f 100644 --- a/sngecomm/utilities.go +++ b/sngecomm/utilities.go @@ -94,7 +94,11 @@ func ValueBetween(min, max int64, fact float64) int64 { func DumpTLSConfig(exampid string, c *tls.Config, n *tls.Conn) { llu.Printf("%s TLSConfig:\n", exampid) llu.Printf("%s Rand:%#v\n", exampid, c.Rand) - llu.Printf("%s Time:%v\n", exampid, c.Time) + if c.Time != nil { + llu.Printf("%s Time:%v\n", exampid, c.Time()) + } else { + llu.Printf("%s Time:%v\n", exampid, nil) + } llu.Printf("%s Certificates:%#v\n", exampid, c.Certificates) llu.Printf("%s NameToCertificate:%#v\n", exampid, c.NameToCertificate) llu.Printf("%s RootCAs:%#v\n", exampid, c.RootCAs) -- 2.11.4.GIT