From: jsg Date: Sun, 30 Apr 2023 23:46:52 +0000 (+0000) Subject: avoid use after free X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cc6957054764e2ef8b1ee18943372fc4090f8e82;p=openbsd avoid use after free ok florian@ --- 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)