Skip to content

Commit 99d4d3a

Browse files
committed
Prevent a null pointer deref if a service is down.
1 parent 8d1babf commit 99d4d3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ func (service *service) testHTTPEgress(port int) {
136136
}
137137
return
138138
}
139+
140+
return // if the first one errored already, don't continue
139141
}
140142
defer resp.Body.Close()
141143

0 commit comments

Comments
 (0)