Merge pull request #4634 from vmware/fix_vul_issues

Fix the vulnerability issues in the job service code
This commit is contained in:
Steven Zou 2018-04-12 16:20:43 +08:00 committed by GitHub
commit 04bad55134
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -34,7 +34,7 @@ func New(logPath string, level string) *JobLogger {
//Implements logger.Closer interface
func (jl *JobLogger) Close() error {
if jl.streamRef != nil {
jl.streamRef.Close()
return jl.streamRef.Close()
}
return nil

View File

@ -3,7 +3,6 @@
package opm
import (
"crypto/tls"
"encoding/json"
"errors"
"fmt"
@ -38,9 +37,6 @@ func NewHookClient() *HookClient {
Transport: &http.Transport{
MaxIdleConns: maxIdleConnections,
IdleConnTimeout: idleConnectionTimeout,
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
},
}