Skip to content

Commit

Permalink
Merge pull request #3420 from nathanielc/master
Browse files Browse the repository at this point in the history
catch opentsdb malformed tags if they are missing keys or values
  • Loading branch information
otoolep committed Jul 22, 2015
2 parents 8484d93 + 17cc092 commit d9ba1cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/opentsdb/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (s *Service) handleTelnetConn(conn net.Conn) {
tags := make(map[string]string)
for t := range tagStrs {
parts := strings.SplitN(tagStrs[t], "=", 2)
if len(parts) != 2 {
if len(parts) != 2 || parts[0] == "" || parts[1] == "" {
s.Logger.Println("TSDBServer: malformed tag data", tagStrs[t])
continue
}
Expand Down

0 comments on commit d9ba1cc

Please sign in to comment.