mirror of https://github.com/wolfSSL/wolfssh.git
Merge pull request #314 from JacobBarthelmeh/static_analysis
sanity null check on localTimepull/315/head
commit
322d7cd6f7
|
@ -2305,6 +2305,9 @@ static int SFTP_CreateLongName(WS_SFTPNAME* name)
|
|||
|
||||
/* get date as calendar date */
|
||||
localTime = XGMTIME((const time_t*)&atr->mtime, &localTime);
|
||||
if (localTime == NULL) {
|
||||
return WS_MEMORY_E;
|
||||
}
|
||||
getDate(date, sizeof(date), localTime);
|
||||
totalSz += WS_DATE_SIZE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue