mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
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,7 +205,10 @@ __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))
|
||||
return __hurd_fail (EOVERFLOW);
|
||||
{
|
||||
va_end (ap);
|
||||
return __hurd_fail (EOVERFLOW);
|
||||
}
|
||||
}
|
||||
|
||||
result = err ? __hurd_dfail (fd, err) : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user