From e65660aea00a075e65b827cffe9c0150a94aa310 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 3 Sep 2023 21:59:35 +0000 Subject: [PATCH] fixup! fixup! stream-ws: Inherit stream-tcp --- src/stream-tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream-tcp.c b/src/stream-tcp.c index 737f7ad..0441fab 100644 --- a/src/stream-tcp.c +++ b/src/stream-tcp.c @@ -337,7 +337,7 @@ struct stream* stream_new(int fd, stream_event_fn on_event, void* userdata) if (!self) return NULL; - if (!stream_tcp_init(self, fd, on_event, userdata)) { + if (stream_tcp_init(self, fd, on_event, userdata) < 0) { free(self); return NULL; }