From: Yu Watanabe Date: Mon, 9 Nov 2020 14:59:36 +0000 (+0900) Subject: core: add missing oom check X-Git-Tag: v247-rc2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72585a584d26eec4bb9ea6c30fc101f1e4f0d7f9;p=thirdparty%2Fsystemd.git core: add missing oom check Fixes #17552. --- diff --git a/src/core/socket.c b/src/core/socket.c index 7b3827ae875..7f8ac4eae98 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -1710,6 +1710,8 @@ static int socket_open_fds(Socket *_s) { _cleanup_free_ char *ep = NULL; ep = path_make_absolute("ep0", p->path); + if (!ep) + return -ENOMEM; p->fd = usbffs_address_create(ep); if (p->fd < 0)