From e585a77467c8b75fadd789471f6bd5bb62d2f4df Mon Sep 17 00:00:00 2001
From: Georgy Moshkin <gmoshkin@picodata.io>
Date: Thu, 14 Mar 2024 15:15:54 +0300
Subject: [PATCH] fix: assertion failure in DEBUG builds

NO_DOC=bug fix
NO_TEST=bug fix
NO_CHANGELOG=bug fix
---
 src/lib/core/ssl_impl.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/core/ssl_impl.c b/src/lib/core/ssl_impl.c
index f1ee092c9f..38b86b3797 100644
--- a/src/lib/core/ssl_impl.c
+++ b/src/lib/core/ssl_impl.c
@@ -376,6 +376,9 @@ ssl_iostream_create_supported(struct iostream *io, int fd,
 	io->fd = fd;
 	io->data = ssl;
 	io->vtab = &ssl_iostream_vtab;
+#ifndef NDEBUG
+	io->owner = NULL;
+#endif
 	return 0;
 }
 
-- 
GitLab