This is an automated email from the ASF dual-hosted git repository.
neuman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git
The following commit(s) were added to refs/heads/master by this push:
new 730af93 t3cutil: core dump fix for TOClient SetURL interface (#6138)
730af93 is described below
commit 730af93470db44dbfacaab8a280b3325ce397577
Author: Brian Olsen <[email protected]>
AuthorDate: Wed Aug 25 11:42:01 2021 -0600
t3cutil: core dump fix for TOClient SetURL interface (#6138)
---
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.