sd-dhcp-client: make client_handle_message() propagate critical error
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Nov 2023 03:56:57 +0000 (12:56 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Nov 2023 04:03:40 +0000 (13:03 +0900)
commit69f50bf35e5cae338839d180cb8051911573eb30
tree74ab230ca4ccf3960f4487d51042a527b00544c8
parentb2622db0df5bcd82529a781ed1209f8ddeb18f8e
sd-dhcp-client: make client_handle_message() propagate critical error

Then, stop client in the caller side.

This also makes
- ignore all errors except for resource errors like OOM when FORCERENEW
  is received,
- trigger assertion when an message received even if the client is
  stopped.

This should not change any functionality. Just refactoring.
src/libsystemd-network/sd-dhcp-client.c