Skip to content
  • Cal Turney's avatar
    HTTP: Improved robustness and memory freed · 53db86fb
    Cal Turney authored and AndersBroman's avatar AndersBroman committed
    - No longer pass curr into process_header(). Use curr_req_res instead.
      (no need to pass this in).
    - struct curr is checked to see if it exists before use.
    - The code to extract the first number of the range from HTTP requests
      and resplonses has been rewritten
    - g_new was replaced with wmem_new
    - "first_crange_num_str = wmem_alloc(scope, 100);" was removed.
    - curr_req_res->resp_has_range = TRUE; was moved outside the if
      because regardless of a match or not, the HTTP packet has a Range;
      otherwise, it would not be in "case HDR_CONTENT_RANGE".
    - Tests for NULL have been added to eliminate some warnings.
    - Simplified the g_slist_delete_link() code and eliminated pipeline
      errors associated with it.
    - Fixed "Access to field 'transfer_encoding_chunked' results in a
      dereference of a null pointer" error.
    53db86fb