buffer: Don't call va_end() twice
This is handled in the cleanup. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
4c47719d98
Коммит
2ae2baf9ca
@ -1108,7 +1108,6 @@ int ssh_buffer_unpack_va(struct ssh_buffer_struct *buffer,
|
|||||||
for (p = format, count = 0; *p != '\0'; p++, count++) {
|
for (p = format, count = 0; *p != '\0'; p++, count++) {
|
||||||
/* Invalid number of arguments passed */
|
/* Invalid number of arguments passed */
|
||||||
if (argc != -1 && count > argc) {
|
if (argc != -1 && count > argc) {
|
||||||
va_end(ap_copy);
|
|
||||||
rc = SSH_ERROR;
|
rc = SSH_ERROR;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user