mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-01-29 21:22:46 +00:00
need va_copy before va_start
reported by Nicholas Lemonias
This commit is contained in:
parent
eb6c50d82a
commit
0f754e29dd
@ -47,6 +47,7 @@ vasprintf(char **str, const char *fmt, va_list ap)
|
||||
char *string, *newstr;
|
||||
size_t len;
|
||||
|
||||
va_start(ap);
|
||||
VA_COPY(ap2, ap);
|
||||
if ((string = malloc(INIT_SZ)) == NULL)
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user