mirror of git://sourceware.org/git/glibc.git
hurd: Add missing va_end call in fcntl implementation. [BZ #32234]
* sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Add va_end call in two code paths.
This commit is contained in:
parent
a36814e145
commit
e67f8e6dbd
|
@ -148,6 +148,7 @@ __libc_fcntl (int fd, int cmd, ...)
|
|||
cmd = F_SETLKW64;
|
||||
break;
|
||||
default:
|
||||
va_end (ap);
|
||||
return __hurd_fail (EINVAL);
|
||||
}
|
||||
|
||||
|
@ -204,8 +205,11 @@ __libc_fcntl (int fd, int cmd, ...)
|
|||
&& fl->l_start != fl64.l_start)
|
||||
|| (sizeof fl->l_len != sizeof fl64.l_len
|
||||
&& fl->l_len != fl64.l_len))
|
||||
{
|
||||
va_end (ap);
|
||||
return __hurd_fail (EOVERFLOW);
|
||||
}
|
||||
}
|
||||
|
||||
result = err ? __hurd_dfail (fd, err) : 0;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue