From 4f6a396fcf16f97b2abc3d0cba10e9aa9bc38619 Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Thu, 2 Sep 2010 14:35:58 +0200 Subject: Dead assignments cleanup in various places in SSSD Three assignments deleted, two return code inspection added. Also found and fixed one critical bug caused by dead assignment. Ticket: #590 --- src/db/sysdb.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/db') diff --git a/src/db/sysdb.c b/src/db/sysdb.c index 5a7626f4..4e1243c0 100644 --- a/src/db/sysdb.c +++ b/src/db/sysdb.c @@ -193,6 +193,9 @@ int sysdb_attrs_add_val(struct sysdb_attrs *attrs, int ret; ret = sysdb_attrs_get_el(attrs, name, &el); + if (ret != EOK) { + return ret; + } vals = talloc_realloc(attrs->a, el->values, struct ldb_val, el->num_values+1); -- cgit