From ec910d94d3f4515c1cb4528e5e07be2296734f9a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 7 Oct 2011 09:56:17 +0200 Subject: ldb/ldb_controls: allow oid up to 255 chars We have char oid[256], so allow sscanf() to consume 255 chars. metze --- lib/ldb/common/ldb_controls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ldb/common/ldb_controls.c b/lib/ldb/common/ldb_controls.c index 42fabfc185..d4fc21f58e 100644 --- a/lib/ldb/common/ldb_controls.c +++ b/lib/ldb/common/ldb_controls.c @@ -949,7 +949,7 @@ struct ldb_control *ldb_parse_control_from_string(struct ldb_context *ldb, TALLO oid[0] = '\0'; p = &(control_strings[10]); - ret = sscanf(p, "%64[^:]:%d", oid, &crit); + ret = sscanf(p, "%255[^:]:%d", oid, &crit); if ((ret != 2) || strlen(oid) == 0 || (crit < 0) || (crit > 1)) { error_string = talloc_asprintf(mem_ctx, "invalid local_oid control syntax\n"); -- cgit