fixup! fixup! stream-ws: Inherit stream-tcp

rsa-aes
Andri Yngvason 2023-09-03 21:59:35 +00:00
parent 6869eb42e6
commit e65660aea0
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ struct stream* stream_new(int fd, stream_event_fn on_event, void* userdata)
if (!self) if (!self)
return NULL; return NULL;
if (!stream_tcp_init(self, fd, on_event, userdata)) { if (stream_tcp_init(self, fd, on_event, userdata) < 0) {
free(self); free(self);
return NULL; return NULL;
} }