Skip to content

Commit

Permalink
Return any errors when creating tls config (#5541)
Browse files Browse the repository at this point in the history
(cherry picked from commit c3e793b)
  • Loading branch information
danielnelson committed Mar 7, 2019
1 parent e8ae3e3 commit e3d3a40
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 e3d3a40

Please sign in to comment.