r9754: Upgrading with the command line utility now works, at least partially (-:
[kai/samba.git] / source / lib / samba3 / secrets.c
index 25ab8f5db5783b74db7d273102c5f5daef26008e..43f0a2ec12b3aa781652ec0c961aaa2ae645cf8a 100644 (file)
@@ -72,7 +72,7 @@ static struct samba3_domainsecrets *secrets_find_domain(TALLOC_CTX *ctx, struct
 
        db->domains = talloc_realloc(ctx, db->domains, struct samba3_domainsecrets, db->domain_count+1);
        ZERO_STRUCT(db->domains[db->domain_count]);
 
        db->domains = talloc_realloc(ctx, db->domains, struct samba3_domainsecrets, db->domain_count+1);
        ZERO_STRUCT(db->domains[db->domain_count]);
-       db->domains[db->domain_count].name = talloc_strdup(ctx, key); 
+       db->domains[db->domain_count].name = talloc_strdup(db->domains, key); 
 
        db->domain_count++;
        
 
        db->domain_count++;