Skip to content

Commit 03cd39d

Browse files
committed
out_websocket: avoid response access after destroy
Signed-off-by: Eduardo Silva <eduardo@chronosphere.io>
1 parent 3816218 commit 03cd39d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/out_websocket/websocket.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ static int flb_ws_handshake(struct flb_connection *u_conn,
8585
flb_debug("[output_ws] Websocket Server Response\n%s",
8686
c->resp.payload);
8787
}
88+
flb_debug("[out_ws] Http Get Operation ret = %i, http resp = %i",
89+
ret, c->resp.status);
8890
flb_http_client_destroy(c);
8991
flb_upstream_conn_release(u_conn);
90-
flb_debug("[out_ws] Http Get Operation ret = %i, http resp = %i", ret, c->resp.status);
9192
return -1;
9293
}
9394
flb_http_client_destroy(c);

0 commit comments

Comments
 (0)