sd-radv: propagate OOM, it's reason to fail

This commit is contained in:
Lennart Poettering
2018-11-26 22:31:15 +01:00
parent e866e17b0f
commit e55a6eaeb9
+1 -1
View File
@@ -235,7 +235,7 @@ static int radv_recv(sd_event_source *s, int fd, uint32_t revents, void *userdat
buf = new0(char, buflen);
if (!buf)
return 0;
return -ENOMEM;
r = icmp6_receive(fd, buf, buflen, &src, &timestamp);
if (r < 0) {