diff options
| author | Richard W.M. Jones <rjones@redhat.com> | 2012-01-24 16:42:39 +0000 |
|---|---|---|
| committer | Richard W.M. Jones <rjones@redhat.com> | 2012-01-24 17:00:37 +0000 |
| commit | a05ddcd2a719f97ba036e9d6ca4e6491ed8b1fd0 (patch) | |
| tree | 3bc9044989ae265e7891a96f80ec8a9d822f1baf /python | |
| parent | 9700708a19a46a61ffe53c6e648206336781477e (diff) | |
| download | libguestfs-a05ddcd2a719f97ba036e9d6ca4e6491ed8b1fd0.tar.gz libguestfs-a05ddcd2a719f97ba036e9d6ca4e6491ed8b1fd0.tar.xz libguestfs-a05ddcd2a719f97ba036e9d6ca4e6491ed8b1fd0.zip | |
daemon: Fix use-after-free in case-insensitive-path (found by valgrind).
This commit tidies up the code by splitting out the path
element-searching code into a separate function.
Valgrind found that 'closedir' frees the 'struct dirent *', which
wasn't immediately obvious. So now we do the 'closedir' after all
operations which touch 'd->d_name'.
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions
