mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
buffer: Cleanup vaargs in ssh_buffer_unpack_va()
CID: #1267977 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -878,6 +878,7 @@ 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);
|
||||||
return SSH_ERROR;
|
return SSH_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user