mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
bench: Add missing allocations checks
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Norbert Pocs <npocs@redhat.com>
This commit is contained in:
@@ -180,6 +180,9 @@ int benchmarks_async_sftp_down (ssh_session session, struct argument_s *args,
|
||||
if(!file)
|
||||
goto error;
|
||||
ids = malloc(concurrent_downloads * sizeof(int));
|
||||
if (ids == NULL) {
|
||||
return -1;
|
||||
}
|
||||
if(args->verbose>0)
|
||||
fprintf(stdout,"Starting download of %lu bytes now, using %d concurrent downloads\n",bytes,
|
||||
concurrent_downloads);
|
||||
|
||||
Reference in New Issue
Block a user