From 558c7ff45fe32ffed02736b9732b4a9d8044aa53 Mon Sep 17 00:00:00 2001 From: Vasil Mikulich Date: Thu, 6 Jul 2017 01:28:04 +0300 Subject: [PATCH] Net: fixed assert in MultipartStreamBuf constructor with empty boundaries (#1496) --- Net/src/MultipartReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Net/src/MultipartReader.cpp b/Net/src/MultipartReader.cpp index d167906d3..98a0acaa9 100644 --- a/Net/src/MultipartReader.cpp +++ b/Net/src/MultipartReader.cpp @@ -38,7 +38,7 @@ MultipartStreamBuf::MultipartStreamBuf(std::istream& istr, const std::string& bo _boundary(boundary), _lastPart(false) { - poco_assert (!boundary.empty() && boundary.length() < STREAM_BUFFER_SIZE - 6); + poco_assert (boundary.length() < STREAM_BUFFER_SIZE - 6); }