mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-03 01:17:45 +03:00
resolvectl: fix type of ifindex D-Bus field, and make sure to initialize to zero in all code paths
(cherry picked from commit a5e6c8498c
)
This commit is contained in:
parent
7d4ea095d5
commit
ed26f98f2f
@ -1203,9 +1203,10 @@ static int reset_server_features(int argc, char **argv, void *userdata) {
|
||||
static int read_dns_server_one(sd_bus_message *m, bool with_ifindex, bool extended, char **ret) {
|
||||
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
|
||||
_cleanup_free_ char *pretty = NULL;
|
||||
int ifindex, family, r, k;
|
||||
union in_addr_union a;
|
||||
const char *name = NULL;
|
||||
int32_t ifindex = 0;
|
||||
int family, r, k;
|
||||
uint16_t port = 0;
|
||||
|
||||
assert(m);
|
||||
|
Loading…
Reference in New Issue
Block a user