~connman-maintainers/connman/head

Viewing all changes in revision 8229.

  • Committer: Daniel Wagner
  • Date: 2022-09-07 18:56:36 UTC
  • Revision ID: git-v1:e6523511d736667e45877d588a64988e818a06fe
wispr: Fix context refcounting in wispr_portal_request_portal()

The wispr_portal_request_portal() function is expected to read until
there is no data. Hence, the wp_context refcount is supposed to be
hold on while reading.

Furthermore, we should not return early when we read the
X-ConnMan-Status header. Instead we are supposed to go through the
normal return path so that we cleanup any added routing entries. Thus,
we also don't need to update the refcount in this code path as we
handle it at the main return path.

Fixes: 416bfaff9888 ("wispr: Update portal context references")

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: