From 04759b59e71c78ab23b84d13dd29d9c6dd680adb Mon Sep 17 00:00:00 2001 From: Michal Zidek Date: Mon, 15 Oct 2012 12:21:00 +0200 Subject: failover: Protect against empty host names Added new parameter to split_on_separator that allows to skip empty values. The whole function was rewritten. Unit test case was added to check the new implementation. https://fedorahosted.org/sssd/ticket/1484 --- src/confdb/confdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/confdb') diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c index 3707f18b5..600d423d0 100644 --- a/src/confdb/confdb.c +++ b/src/confdb/confdb.c @@ -599,7 +599,7 @@ int confdb_get_string_as_list(struct confdb_ctx *cdb, TALLOC_CTX *ctx, goto done; } - ret = split_on_separator(ctx, values[0], ',', true, result, NULL); + ret = split_on_separator(ctx, values[0], ',', true, true, result, NULL); done: talloc_free(values); -- cgit