This is an automated email from the ASF dual-hosted git repository. dangogh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
commit 709727f0f91b29b70c7844c823e8c53c51765434 Author: Dewayne Richardson <dewr...@apache.org> AuthorDate: Mon Mar 5 08:57:26 2018 -0700 added nil check for the isSecure flag --- traffic_ops/traffic_ops_golang/systeminfo/system_info.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/traffic_ops/traffic_ops_golang/systeminfo/system_info.go b/traffic_ops/traffic_ops_golang/systeminfo/system_info.go index 8c5d576..1dcb8fe 100644 --- a/traffic_ops/traffic_ops_golang/systeminfo/system_info.go +++ b/traffic_ops/traffic_ops_golang/systeminfo/system_info.go @@ -92,7 +92,12 @@ WHERE p.config_file='global'` if err = rows.StructScan(&p); err != nil { return nil, fmt.Errorf("getting system_info: %v", err) } - isSecure := *p.Secure + + var isSecure bool + if p.Secure != nil { + isSecure = *p.Secure + } + name := p.Name value := p.Value if isSecure && privLevel < auth.PrivLevelAdmin { -- To stop receiving notification emails like this one, please contact dang...@apache.org.