fixup! stream-ws: Inherit stream-tcp

rsa-aes
Andri Yngvason 2023-09-03 18:47:10 +00:00
parent abf9cc54c0
commit 6869eb42e6
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ static struct stream_impl impl = {
struct stream* stream_ws_new(int fd, stream_event_fn on_event, void* userdata) struct stream* stream_ws_new(int fd, stream_event_fn on_event, void* userdata)
{ {
struct stream_ws *self = calloc(1, STREAM_ALLOC_SIZE); struct stream_ws *self = calloc(1, sizeof(*self));
if (!self) if (!self)
return NULL; return NULL;