Merged in sender/nilfix (pull request #30)

revid: fix nil dereference panic
This commit is contained in:
kortschak 2018-06-13 05:25:15 +00:00
commit 5a4ce1aa9c
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ func newHttpSender(url string, timeout time.Duration, log func(lvl, msg string))
}
func (s *httpSender) load(c *ring.Chunk) error {
s.chunk = c
buf := bytes.NewBuffer(s.buf[:0])
_, err := s.chunk.WriteTo(buf)
s.buf = buf.Bytes()