From: Zbigniew Jędrzejewski-Szmek Date: Mon, 27 Nov 2017 12:47:52 +0000 (+0000) Subject: test-ndisc-ra: add assert_se() to make coverity happy X-Git-Tag: v236~102^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef51180b625c36a6ae42eea6d387e32760c281af;p=thirdparty%2Fsystemd.git test-ndisc-ra: add assert_se() to make coverity happy --- diff --git a/src/libsystemd-network/test-ndisc-ra.c b/src/libsystemd-network/test-ndisc-ra.c index 5914fa2bf0e..c1a8d5a00d0 100644 --- a/src/libsystemd-network/test-ndisc-ra.c +++ b/src/libsystemd-network/test-ndisc-ra.c @@ -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) {