fix crash on missing payload metadata

This commit is contained in:
pbsurf
2015-11-04 20:40:44 +00:00
parent a4c40cd8b4
commit 5c272661e9
4 changed files with 12 additions and 1 deletions
+3
View File
@@ -184,6 +184,9 @@ func (o *HTTPOutput) Read(data []byte) (int, error) {
func (o *HTTPOutput) sendRequest(client *HTTPClient, request []byte) {
meta := payloadMeta(request)
if len(meta) < 2 {
return
}
uuid := meta[1]
body := payloadBody(request)