diff options
-rw-r--r-- | src/core/socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/socket.c b/src/core/socket.c index 7b3827ae87..7f8ac4eae9 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) |