summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-08-23 18:53:46 +0000
committerAndrew Tridgell <tridge@samba.org>2003-08-23 18:53:46 +0000
commit133c7a9055e2d4aba79f94a692ebe460e9386d01 (patch)
treec06ef9c6f317b89b927076b057d36f8360efb575 /source4/torture
parent489b369431ac290c3d833621bf2ce6fbc30f2195 (diff)
downloadsamba-133c7a9055e2d4aba79f94a692ebe460e9386d01.tar.gz
samba-133c7a9055e2d4aba79f94a692ebe460e9386d01.tar.bz2
samba-133c7a9055e2d4aba79f94a692ebe460e9386d01.zip
fix a segv when server doesn't support ATTRIBUTE_TAG_INFORMATION
(This used to be commit 19abdace95ff8369922ed7ffb9f75fab6d2d0b7b)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/raw/qfileinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/raw/qfileinfo.c b/source4/torture/raw/qfileinfo.c
index 43ab04460f..0f7b2dfb63 100644
--- a/source4/torture/raw/qfileinfo.c
+++ b/source4/torture/raw/qfileinfo.c
@@ -655,7 +655,9 @@ BOOL torture_raw_qfileinfo(int dummy)
#define NAME_PATH_CHECK(sname, stype, field) do { \
s1 = fname_find(sname); s2 = fnum_find(sname); \
- VAL_EQUAL(stype, field, stype, field); \
+ if (s1 && s2) { \
+ VAL_EQUAL(stype, field, stype, field); \
+ } \
} while (0)
NAME_PATH_CHECK("INTERNAL_INFORMATION", internal_information, device);