summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ldb/common/ldb_controls.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/ldb/common/ldb_controls.c b/lib/ldb/common/ldb_controls.c
index b3ef243493..81f3c7a5b1 100644
--- a/lib/ldb/common/ldb_controls.c
+++ b/lib/ldb/common/ldb_controls.c
@@ -373,17 +373,16 @@ char *ldb_control_to_string(TALLOC_CTX *mem_ctx, const struct ldb_control *contr
*/
if (control->data == NULL) {
/*
- * We don't know the control but there is no real data attached to it
- * so we can represent it with local_oid:oid:criticity
+ * We don't know the control but there is no real data attached
+ * to it so we can represent it with local_oid:oid:criticity.
*/
res = talloc_asprintf(mem_ctx, "local_oid:%s:%d",
control->oid,
control->critical);
- return res;
- }
-
+ } else {
res = talloc_asprintf(mem_ctx, "unknown oid:%s",
control->oid);
+ }
return res;
}