Skip to content

Commit

Permalink
Return any errors when creating tls config (#5541)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored Mar 7, 2019
1 parent dd67144 commit c3e793b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/socket_listener/socket_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (sl *SocketListener) Start(acc telegraf.Accumulator) error {

tlsCfg, err := sl.ServerConfig.TLSConfig()
if err != nil {
return nil
return err
}

if tlsCfg == nil {
Expand Down

0 comments on commit c3e793b

Please sign in to comment.