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

This commit is contained in:
Lennart Poettering 2018-11-26 22:11:12 +01:00
parent e866e17b0f
commit e55a6eaeb9
1 changed files with 1 additions and 1 deletions

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) {