summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2014-11-24 19:10:01 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-11-25 13:45:40 +0100
commit5777a98940bd742d213fba8ff55c070c5a058fc6 (patch)
treec5b2836bb5152e96c1de6bf9d0cc768e975e9195
parent4fa184e2c60b377fd71e0115a618bd68dc73627d (diff)
downloadsssd-5777a98940bd742d213fba8ff55c070c5a058fc6.zip
sssd-5777a98940bd742d213fba8ff55c070c5a058fc6.tar.gz
sssd-5777a98940bd742d213fba8ff55c070c5a058fc6.tar.xz
test: Wrong parameter type in sss_parse_name_check
This caused aritmetic overflow when SSSD specific error codes where used. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
-rw-r--r--src/tests/cmocka/test_fqnames.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/cmocka/test_fqnames.c b/src/tests/cmocka/test_fqnames.c
index 71429c8..de20843 100644
--- a/src/tests/cmocka/test_fqnames.c
+++ b/src/tests/cmocka/test_fqnames.c
@@ -326,7 +326,7 @@ void parse_name_test_teardown(void **state)
void sss_parse_name_check(struct parse_name_test_ctx *test_ctx,
const char *input_name,
- const char exp_ret,
+ const int exp_ret,
const char *exp_name,
const char *exp_domain)
{