summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/rpc/drsuapi_cracknames.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/torture/rpc/drsuapi_cracknames.c b/source4/torture/rpc/drsuapi_cracknames.c
index 7d8139f8c1d..a0daa608748 100644
--- a/source4/torture/rpc/drsuapi_cracknames.c
+++ b/source4/torture/rpc/drsuapi_cracknames.c
@@ -201,8 +201,11 @@ static bool test_DsCrackNamesMatrix(struct torture_context *tctx,
for (j = 0; j < ARRAY_SIZE(formats); j++) {
torture_comment(tctx, "Converting %s (format %d)"
" to %d gave %s\n",
- n_from[i], formats[i],
- formats[j], n_matrix[i][j]);
+ n_from[i] == NULL ? "NULL" : n_from[i],
+ formats[i], formats[j],
+ n_matrix[i][j] == NULL ?
+ "NULL" : n_matrix[i][j]);
+
if (n_matrix[i][j] == n_from[j]) {
/* We don't have a from name for these yet (and we can't map to them to find it out) */