sftp: Add NULL check in sftp_fstat()
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Этот коммит содержится в:
родитель
eaa97d2062
Коммит
f05717d23e
@ -3323,6 +3323,10 @@ sftp_attributes sftp_fstat(sftp_file file)
|
||||
uint32_t id;
|
||||
int rc;
|
||||
|
||||
if (file == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
buffer = ssh_buffer_new();
|
||||
if (buffer == NULL) {
|
||||
ssh_set_error_oom(file->sftp->session);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user