1
1

sftp: Add NULL check in sftp_fstat()

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Этот коммит содержится в:
Anderson Toshiyuki Sasaki 2018-12-04 15:17:06 +01:00 коммит произвёл Andreas Schneider
родитель 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);