summaryrefslogtreecommitdiff
path: root/src/tests/common/acl_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/common/acl_tests.c')
-rw-r--r--src/tests/common/acl_tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/common/acl_tests.c b/src/tests/common/acl_tests.c
index f8ab106..e115dc4 100644
--- a/src/tests/common/acl_tests.c
+++ b/src/tests/common/acl_tests.c
@@ -145,7 +145,7 @@ static int acl_tests_run(int argc, char *argv[])
acl_create(acl, &match_pf4, ACL_ACCEPT, 0, 0); /* Make decoy. */
acl_key_t *rval = NULL;
ret = acl_match(acl, &test_pf4, &rval);
- ok(rval->val == sval, "acl: search for preferred node");
+ ok(rval && rval->val == sval, "acl: search for preferred node");
// 19. Scenario after truncating
ok(acl_truncate(acl) == ACL_ACCEPT, "acl: truncate");