diff options
author | James Peach <jpeach@samba.org> | 2010-08-06 15:21:31 -0700 |
---|---|---|
committer | James Peach <jpeach@samba.org> | 2010-08-11 11:11:28 -0700 |
commit | 44de839dabb6062d524ddc0001ca23fb8505e643 (patch) | |
tree | 9721c01f3913632484e432471813722ba001ab99 /source4/torture | |
parent | 88d48a7d92ca7dedc5357a1e7caab544e586bafb (diff) | |
download | samba-44de839dabb6062d524ddc0001ca23fb8505e643.tar.gz samba-44de839dabb6062d524ddc0001ca23fb8505e643.tar.bz2 samba-44de839dabb6062d524ddc0001ca23fb8505e643.zip |
smbtorture: Don't crash RAW-QFILEINFO if there's no alternate name.
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/raw/qfileinfo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/raw/qfileinfo.c b/source4/torture/raw/qfileinfo.c index 54f1d127d3..2a5a2e77ef 100644 --- a/source4/torture/raw/qfileinfo.c +++ b/source4/torture/raw/qfileinfo.c @@ -667,6 +667,11 @@ static bool torture_raw_qfileinfo_internals(struct torture_context *torture, s1 = fnum_find("ALT_NAME_INFO"); if (s1) { correct_name = s1->alt_name_info.out.fname.s; + } + + if (!correct_name) { + torture_comment(torture, "no alternate name information\n"); + } else { torture_comment(torture, "alt_name: %s\n", correct_name); NAME_CHECK("ALT_NAME_INFO", alt_name_info, fname, STR_UNICODE); |