@cryptotaxi247 / netdata-1 / commits / 15b454eff

do not use errno when hashing status events (#19900)

Costa Tsaousis committed Mar 19, 2025 at 01:23 UTC 15b454effe69e2a319fb72c504bda12d0a32d84c
1 file changed -2
src/daemon/daemon-status-file.c
-2
@@ -111,7 +111,6 @@ static uint64_t daemon_status_file_hash(DAEMON_STATUS_FILE *ds, const char *msg,
111 char version[sizeof(ds->version)];
112 char filename[sizeof(ds->fatal.filename)];
113 char function[sizeof(ds->fatal.function)];
114 - char errno_str[sizeof(ds->fatal.errno_str)];
114 char stack_trace[sizeof(ds->fatal.stack_trace)];
115 char thread[sizeof(ds->fatal.thread)];
116 char msg[128];
@@ -139,7 +138,6 @@ static uint64_t daemon_status_file_hash(DAEMON_STATUS_FILE *ds, const char *msg,
138 strncpyz(to_hash.version, ds->version, sizeof(to_hash.version) - 1);
139 strncpyz(to_hash.filename, ds->fatal.filename, sizeof(to_hash.filename) - 1);
140 strncpyz(to_hash.filename, ds->fatal.function, sizeof(to_hash.function) - 1);
142 - strncpyz(to_hash.errno_str, ds->fatal.errno_str, sizeof(to_hash.errno_str) - 1);
141 strncpyz(to_hash.stack_trace, ds->fatal.stack_trace, sizeof(to_hash.stack_trace) - 1);
142 strncpyz(to_hash.thread, ds->fatal.thread, sizeof(to_hash.thread) - 1);
143