Ticket #12605: 0001-Check-for-valid-resourcehandle-in-HeadersReceived.patch

File 0001-Check-for-valid-resourcehandle-in-HeadersReceived.patch, 981 bytes (added by markh, 4 years ago)
  • Source/WebCore/platform/network/haiku/BUrlProtocolHandler.cpp

    From 2c0cdf2ba79fa69ce0182321423871d43e7a1f93 Mon Sep 17 00:00:00 2001
    From: Mark Hellegers <mark@firedisk.net>
    Date: Sun, 17 Jan 2016 19:44:21 +0100
    Subject: [PATCH] Check for valid resourcehandle in HeadersReceived
    
    ---
     Source/WebCore/platform/network/haiku/BUrlProtocolHandler.cpp | 3 +++
     1 file changed, 3 insertions(+)
    
    diff --git a/Source/WebCore/platform/network/haiku/BUrlProtocolHandler.cpp b/Source/WebCore/platform/network/haiku/BUrlProtocolHandler.cpp
    index a5f1bb0..4e90d9a 100644
    a b void BUrlProtocolHandler::ConnectionOpened(BUrlRequest*)  
    442442
    443443void BUrlProtocolHandler::HeadersReceived(BUrlRequest* /*caller*/)
    444444{
     445    if (!m_resourceHandle)
     446        return;
     447
    445448    BHttpRequest* httpRequest = dynamic_cast<BHttpRequest*>(m_request);
    446449
    447450    WTF::String contentType = m_request->Result().ContentType();