test-ndisc-ra: add assert_se() to make coverity happy

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-11-28 09:25:38 +01:00
parent 10a6e01eaa
commit ef51180b62
+1 -1
View 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) {