From cd6b082409fabe98fe63d651c09626f4465dd9fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20B=C3=BClow?= Date: Wed, 7 Dec 2022 21:57:18 +0100 Subject: [PATCH] Update net.c Fix: heap-use-after-free reported by Address Sanitizer: --- src/tds/net.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tds/net.c b/src/tds/net.c index 8d49de45f..b3faa6834 100644 --- a/src/tds/net.c +++ b/src/tds/net.c @@ -749,7 +749,6 @@ tds_socket_read(TDSCONNECTION * conn, TDSSOCKET *tds, unsigned char *buf, int bu return 0; /* detect connection close */ - tds_connection_close(conn); tdserror(conn->tds_ctx, tds, len == 0 ? TDSESEOF : TDSEREAD, len == 0 ? 0 : err); return -1; }