This is an automated email from the ASF dual-hosted git repository. zrhoffman pushed a commit to branch 6.0.x in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
commit edf90936cad8ad67a8212d9bb3aead4ad58947c9 Author: Brian Olsen <[email protected]> AuthorDate: Wed Aug 25 11:42:01 2021 -0600 t3cutil: core dump fix for TOClient SetURL interface (#6138) (cherry picked from commit 730af93470db44dbfacaab8a280b3325ce397577) --- cache-config/t3cutil/toreq/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cache-config/t3cutil/toreq/client.go b/cache-config/t3cutil/toreq/client.go index c2af4e5..b73844c 100644 --- a/cache-config/t3cutil/toreq/client.go +++ b/cache-config/t3cutil/toreq/client.go @@ -58,8 +58,9 @@ func (cl *TOClient) URL() string { func (cl *TOClient) SetURL(newURL string) { if cl.c == nil { cl.old.SetURL(newURL) + } else { + cl.c.URL = newURL } - cl.c.URL = newURL } // New logs into Traffic Ops, returning the TOClient which contains the logged-in client.
