Vector data will be lost if reallocation fails, leading to undefined behaviour. Additionally, the indices of the allocated vector data can be represented more precisely by using size_t as the index type. If no configuration file or an invalid parameter is provided, the daemon should exit with a failure status. v2: - Moved variable declaration and described usage of size_t as suggested by Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> Donald Yandt (3): conntrackd: prevent memory loss if reallocation fails conntrackd: use size_t for element indices conntrackd: exit with failure status src/main.c | 5 ++--- src/vector.c | 11 ++++++----- 2 files changed, 8 insertions(+), 8 deletions(-) -- 2.44.0