From cc6957054764e2ef8b1ee18943372fc4090f8e82 Mon Sep 17 00:00:00 2001 From: jsg Date: Sun, 30 Apr 2023 23:46:52 +0000 Subject: [PATCH] avoid use after free ok florian@ --- sbin/unwind/frontend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/unwind/frontend.c b/sbin/unwind/frontend.c index 20061e6f721..3bc7b485cd3 100644 --- a/sbin/unwind/frontend.c +++ b/sbin/unwind/frontend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frontend.c,v 1.77 2023/02/08 08:01:25 tb Exp $ */ +/* $OpenBSD: frontend.c,v 1.78 2023/04/30 23:46:52 jsg Exp $ */ /* * Copyright (c) 2018 Florian Obser @@ -1747,6 +1747,7 @@ tcp_response(int fd, short events, void *arg) if (errno == EAGAIN || errno == EINTR) return; free_pending_query(pq); + return; } sldns_buffer_skip(pq->abuf, n); if (sldns_buffer_remaining(pq->abuf) == 0) -- 2.20.1