Commit af41709c by Serge Hallyn

af_unix.c: fix coverity-found bug: pass addr size

parent bdb539b8
......@@ -75,7 +75,7 @@ int lxc_af_unix_open(const char *path, int type, int flags)
int lxc_af_unix_close(int fd)
{
struct sockaddr_un addr;
socklen_t addrlen;
socklen_t addrlen = sizeof(addr);
if (!getsockname(fd, (struct sockaddr *)&addr, &addrlen) &&
addr.sun_path[0])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment