]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-ndisc-ra: add assert_se() to make coverity happy
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 27 Nov 2017 12:47:52 +0000 (12:47 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Nov 2017 08:25:38 +0000 (09:25 +0100)
src/libsystemd-network/test-ndisc-ra.c

index 5914fa2bf0ead285a771b98fb52db7a04fc64c51..c1a8d5a00d05227ee71d296d0506ebaf058652ae 100644 (file)
@@ -262,7 +262,7 @@ static int radv_recv(sd_event_source *s, int fd, uint32_t revents, void *userdat
         unsigned char buf[168];
         size_t i;
 
-        read(test_fd[0], &buf, sizeof(buf));
+        assert_se(read(test_fd[0], &buf, sizeof(buf)) == sizeof(buf));
 
         /* router lifetime must be zero when test is stopped */
         if (test_stopped) {