File Fix-crash-when-mixing-iterators-in-http-response-parsing.patch of Package libktorrent.7446

From: "Martin T. H. Sandsmark" <martin.sandsmark@kde.org>
Date: Mon, 4 Jul 2016 02:02:34 +0200
Subject: [PATCH] Fix crash when mixing iterators in http response parsing
References: boo#1065559
Upstream: merged
---

Fix SIGSEGV occuring when processing Webseeds in torrent.

Patch obtained from https://github.com/KDE/libktorrent/commit/69678cd7171748706d0182fbe90eefd967c6996a.

---
 src/download/httpresponseheader.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/download/httpresponseheader.cpp b/src/download/httpresponseheader.cpp
index 7f2e95c..82f71b9 100644
--- a/src/download/httpresponseheader.cpp
+++ b/src/download/httpresponseheader.cpp
@@ -84,7 +84,7 @@ bool HttpResponseHeader::parse(const QString &str)
     }
 
     int number = 0;
-    for (auto it = lst.begin(); it != lines.end(); ++it) {
+    for (auto it = lines.begin(); it != lines.end(); ++it) {
         if (!parseLine(*it, number++)) {
             return false;
         }
openSUSE Build Service is sponsored by