mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-26 17:57:01 +00:00
Zero the buffer on behalf of the client.
This commit is contained in:
@@ -124,6 +124,7 @@ onlp_file_vread(uint8_t* data, int max, int* len, const char* fmt, va_list vargs
|
||||
rv = fd;
|
||||
}
|
||||
else {
|
||||
memset(data, 0, max);
|
||||
if ((*len = read(fd, data, max)) <= 0) {
|
||||
AIM_LOG_ERROR("Failed to read input file '%s'", fname);
|
||||
rv = ONLP_STATUS_E_INTERNAL;
|
||||
|
||||
Reference in New Issue
Block a user