diff options
author | Richard Yao <[email protected]> | 2023-03-12 12:30:21 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2023-03-14 15:25:45 -0700 |
commit | 50f6934b9c1f4aa583592e8a969b934440a44c64 (patch) | |
tree | 61ef272153282654eb574fd73e7d440207802bab /lib/libzfs/libzfs_util.c | |
parent | 47a7062772766c8a532df157a7be681327c20ea6 (diff) |
discover_cached_paths() should not corrupt nvlist string value
discover_cached_paths() will write a NULL into a string from a nvlist to
use it as a substring, but does not restore it before return. This
corrupts the nvlist. It should be harmless unless the string is needed
again later, but we should not do this, so let us fix it.
Reviewed-by: Tino Reichardt <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Richard Yao <[email protected]>
Closes #14612
Diffstat (limited to 'lib/libzfs/libzfs_util.c')
0 files changed, 0 insertions, 0 deletions