artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9a2a63
)
ftp: prevent double free() in error path
author
naddy
<naddy@openbsd.org>
Thu, 25 Feb 2021 20:51:55 +0000
(20:51 +0000)
committer
naddy
<naddy@openbsd.org>
Thu, 25 Feb 2021 20:51:55 +0000
(20:51 +0000)
Reported by bentley@; ok bentley@ jca@
usr.bin/ftp/fetch.c
patch
|
blob
|
history
diff --git
a/usr.bin/ftp/fetch.c
b/usr.bin/ftp/fetch.c
index
c5b1d18
..
4b8b6d5
100644
(file)
--- a/
usr.bin/ftp/fetch.c
+++ b/
usr.bin/ftp/fetch.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: fetch.c,v 1.20
1 2021/02/16 16:27:34
naddy Exp $ */
+/* $OpenBSD: fetch.c,v 1.20
2 2021/02/25 20:51:55
naddy Exp $ */
/* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */
/*-
@@
-1002,6
+1002,7
@@
noslash:
}
}
free(buf);
+ buf = NULL;
/* Content-Length should be ignored for Transfer-Encoding: chunked */
if (chunked)