Fix unregistering listener issue

Unregistering listener on MDnsEventReporter would fail because
the bringing listener is a pointer which is not existed in the
set. So compare the binder which get from listener to find out
the real listener to be removed.

Refacotr the code to store the death recipient in the set
instead. Because we need to unlink the death recipient when
unregistering listener but we do not save the death recipient
before.

Bug: 234107254
Test: atest CtsNetTestCases
      cd system/netd & atest
Change-Id: Ic3bd793ba1d297188700b18b39f380cb7cc43f41
3 files changed
tree: 71a953b5fed7a0747113856da6e42674399ce7a4
  1. client/
  2. include/
  3. netutils_wrappers/
  4. server/
  5. tests/
  6. .editorconfig
  7. Android.bp
  8. NOTICE
  9. OWNERS
  10. PREUPLOAD.cfg
  11. TEST_MAPPING