Merging upstream version 2.1.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-08 12:05:02 +01:00
parent baec2072b7
commit 3dd5d77fd3
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
15 changed files with 147 additions and 23 deletions

View file

@ -228,6 +228,13 @@ int option_parse(options_t* options, const char* option)
options->bpf_hosts_apply_all = 1;
return 0;
}
} else if (have("pid_file")) {
if (options->pid_file) {
free(options->pid_file);
}
if ((options->pid_file = strdup(argument))) {
return 0;
}
}
return 1;
@ -244,5 +251,9 @@ void options_free(options_t* options)
free(options->group);
options->group = 0;
}
if (options->pid_file) {
free(options->pid_file);
options->pid_file = 0;
}
}
}