=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/fetch.c,v retrieving revision 1.201 retrieving revision 1.202 diff -u -r1.201 -r1.202 --- src/usr.bin/ftp/fetch.c 2021/02/16 16:27:34 1.201 +++ src/usr.bin/ftp/fetch.c 2021/02/25 20:51:55 1.202 @@ -1,4 +1,4 @@ -/* $OpenBSD: fetch.c,v 1.201 2021/02/16 16:27:34 naddy Exp $ */ +/* $OpenBSD: fetch.c,v 1.202 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 @@ } } free(buf); + buf = NULL; /* Content-Length should be ignored for Transfer-Encoding: chunked */ if (chunked)