summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-07 09:56:17 +0200
committerStefan Metzmacher <metze@samba.org>2011-10-07 12:20:48 +0200
commitec910d94d3f4515c1cb4528e5e07be2296734f9a (patch)
treea2b5fce41d997ae18ef226b18ca1f7587e7ceb73 /lib
parentff1ce6521b0b38fa3d2e09d79a8145a52c63b926 (diff)
downloadsamba-ec910d94d3f4515c1cb4528e5e07be2296734f9a.tar.gz
samba-ec910d94d3f4515c1cb4528e5e07be2296734f9a.tar.bz2
samba-ec910d94d3f4515c1cb4528e5e07be2296734f9a.zip
ldb/ldb_controls: allow oid up to 255 chars
We have char oid[256], so allow sscanf() to consume 255 chars. metze
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb/common/ldb_controls.c2
1 files changed, 1 insertions, 1 deletions
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");