From 42c15e47b45a239ca8150222757288bca0a4d700 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 30 Oct 2013 21:20:50 +0100 Subject: [PATCH] Remove assert which is always true --- src/ChangeLog | 5 +++++ src/http.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 566db745..73ae4ee9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-10-30 Giuseppe Scrivano + + * http.c (skip_short_body): Remove assert which is always true. + Reported by: David Binderman + 2013-10-17 Andrea Urbani * ftp.c (getftp): force "LIST" or "LIST -a" diff --git a/src/http.c b/src/http.c index 6b042a7e..dbfcdfbf 100644 --- a/src/http.c +++ b/src/http.c @@ -924,8 +924,6 @@ skip_short_body (int fd, wgint contlen, bool chunked) char dlbuf[SKIP_SIZE + 1]; dlbuf[SKIP_SIZE] = '\0'; /* so DEBUGP can safely print it */ - assert (contlen != -1 || contlen); - /* If the body is too large, it makes more sense to simply close the connection than to try to read the body. */ if (contlen > SKIP_THRESHOLD)