mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 07:07:24 -04:00
Make sure we initialise dirp->dd_size if we aren't reading a unionfs
directory. Special thanks to: valgrind
This commit is contained in:
parent
0bc6ba1fd2
commit
4da7d0f5dd
1 changed files with 1 additions and 0 deletions
|
|
@ -258,6 +258,7 @@ __opendir2(name, flags)
|
|||
dirp->dd_size = ddptr - dirp->dd_buf;
|
||||
} else {
|
||||
dirp->dd_len = incr;
|
||||
dirp->dd_size = 0;
|
||||
dirp->dd_buf = malloc(dirp->dd_len);
|
||||
if (dirp->dd_buf == NULL)
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Reference in a new issue