summaryrefslogtreecommitdiff
path: root/source4/lib/gendb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/gendb.c')
-rw-r--r--source4/lib/gendb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/gendb.c b/source4/lib/gendb.c
index de3e49e652..92bbd8155c 100644
--- a/source4/lib/gendb.c
+++ b/source4/lib/gendb.c
@@ -99,7 +99,7 @@ int gendb_add_ldif(struct ldb_context *ldb, const char *ldif_string)
{
struct ldb_ldif *ldif;
int ret;
- ldif = ldb_ldif_read_string(ldb, ldif_string);
+ ldif = ldb_ldif_read_string(ldb, &ldif_string);
if (ldif == NULL) return -1;
ret = ldb_add(ldb, ldif->msg);
talloc_free(ldif);