]> git.proxmox.com Git - mirror_kronosnet.git/commitdiff
flush_logs: the reads will overwrite the entire msg structure
authorFerenc Wágner <wferi@debian.org>
Mon, 23 Apr 2018 13:56:34 +0000 (15:56 +0200)
committerFerenc Wágner <wferi@debian.org>
Mon, 23 Apr 2018 14:04:32 +0000 (16:04 +0200)
Signed-off-by: Ferenc Wágner <wferi@debian.org>
libknet/tests/test-common.c

index 075830b5cc6f4e4f60d265dd717656f97ff10d47..5daa0cd4f105bf979a856a925b9240076aa8b6f0 100644 (file)
@@ -223,7 +223,6 @@ void flush_logs(int logfd, FILE *std)
 
 next:
        bytes_read = 0;
-       memset(&msg, 0, sizeof(struct knet_log_msg));
 
        while (bytes_read < sizeof(struct knet_log_msg)) {
                len = read(logfd, &msg + bytes_read,