Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/httpd Fix bug in cleanup of reply headers.
details: https://anonhg.NetBSD.org/src/rev/8c6d82e953b8
branches: trunk
changeset: 342638:8c6d82e953b8
user: elric <elric%NetBSD.org@localhost>
date: Sat Jan 02 20:35:59 2016 +0000
description:
Fix bug in cleanup of reply headers.
diffstat:
libexec/httpd/bozohttpd.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r a954bc186a85 -r 8c6d82e953b8 libexec/httpd/bozohttpd.c
--- a/libexec/httpd/bozohttpd.c Sat Jan 02 18:40:13 2016 +0000
+++ b/libexec/httpd/bozohttpd.c Sat Jan 02 20:35:59 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bozohttpd.c,v 1.78 2016/01/02 18:40:13 elric Exp $ */
+/* $NetBSD: bozohttpd.c,v 1.79 2016/01/02 20:35:59 elric Exp $ */
/* $eterna: bozohttpd.c,v 1.178 2011/11/18 09:21:15 mrg Exp $ */
@@ -347,6 +347,8 @@
free(ohdr);
ohdr = hdr;
}
+ free(ohdr);
+ ohdr = NULL;
for (hdr = SIMPLEQ_FIRST(&request->hr_replheaders); hdr;
hdr = SIMPLEQ_NEXT(hdr, h_next)) {
free(hdr->h_value);
Home |
Main Index |
Thread Index |
Old Index