fix: config_receive uninitialized server_host (CRITICAL-2) & protocol desync on sendfile+delta (CRITICAL-5)
CI / lint (push) Successful in 7s
CI / lint (pull_request) Successful in 7s
CI / build-and-test (push) Successful in 53s
CI / sanitizers (address) (push) Successful in 58s
CI / clang-tidy (push) Successful in 7s
CI / build-and-test (pull_request) Successful in 56s
CI / sanitizers (address) (pull_request) Successful in 59s
CI / clang-tidy (pull_request) Successful in 5s

This commit is contained in:
2026-07-20 17:32:49 +02:00
parent 41e814ad97
commit fd7e98cb25
2 changed files with 8 additions and 1 deletions
+1
View File
@@ -141,6 +141,7 @@ Config* config_receive(int file_descriptor) {
Config* config = (Config*)malloc(sizeof(Config));
if (config == NULL)
return NULL;
memset(config, 0, sizeof(*config));
config->version = receive_str(file_descriptor);
if (!config->version) {
free(config);