diff options
author | Kamen Mazdrashki <kamen.mazdrashki@postpath.com> | 2009-10-24 00:02:02 +0300 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-11-06 14:05:36 +0100 |
commit | 716eb62b5dab37c203b306047b65280ddf34844a (patch) | |
tree | 1357c4c271ebf75de3ecf880d17df0e405f8a9f2 /source4 | |
parent | be06d5ccb4120190571dd5eb91a6dcaae7e27561 (diff) | |
download | samba-716eb62b5dab37c203b306047b65280ddf34844a.tar.gz samba-716eb62b5dab37c203b306047b65280ddf34844a.tar.bz2 samba-716eb62b5dab37c203b306047b65280ddf34844a.zip |
s4/ldb: Fix double allocation for "ldb_url"
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/common/ldb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 9be3aa13e4..732d100827 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -217,7 +217,7 @@ int ldb_connect(struct ldb_context *ldb, const char *url, unsigned int flags, const char *options[]) { int ret; - const char *url2; + char *url2; /* We seem to need to do this here, or else some utilities don't * get ldb backends */ @@ -228,7 +228,7 @@ int ldb_connect(struct ldb_context *ldb, const char *url, ldb_oom(ldb); return LDB_ERR_OPERATIONS_ERROR; } - ret = ldb_set_opaque(ldb, "ldb_url", talloc_strdup(ldb, url2)); + ret = ldb_set_opaque(ldb, "ldb_url", url2); if (ret != LDB_SUCCESS) { return ret; } |