artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2413c91
)
nreq could leak a http get request in case a redirect without
author
mbuhl
<mbuhl@openbsd.org>
Wed, 9 Nov 2022 19:11:14 +0000
(19:11 +0000)
committer
mbuhl
<mbuhl@openbsd.org>
Wed, 9 Nov 2022 19:11:14 +0000
(19:11 +0000)
location header was received.
OK deraadt
usr.sbin/acme-client/netproc.c
patch
|
blob
|
history
diff --git
a/usr.sbin/acme-client/netproc.c
b/usr.sbin/acme-client/netproc.c
index
4298b53
..
1d59de7
100644
(file)
--- a/
usr.sbin/acme-client/netproc.c
+++ b/
usr.sbin/acme-client/netproc.c
@@
-1,4
+1,4
@@
-/* $Id: netproc.c,v 1.3
1 2021/08/24 10:07:30 benno
Exp $ */
+/* $Id: netproc.c,v 1.3
2 2022/11/09 19:11:14 mbuhl
Exp $ */
/*
* Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@
-222,6
+222,7
@@
again:
if ((st = http_head_get("Location", g->head, g->headsz)) ==
NULL) {
warnx("redirect without location header");
+ http_get_free(g);
return -1;
}