Add const
authorAndrew Bartlett <abartlet@samba.org>
Tue, 4 Aug 2009 06:11:55 +0000 (16:11 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 4 Aug 2009 06:11:55 +0000 (16:11 +1000)
source4/lib/ldb-samba/ldif_handlers.c

index 606d4df76114bea0606da3c4aecd3081c39ee5f5..2d3d2b994d14dd3317426dd26e8724f37443f5ed 100644 (file)
@@ -327,7 +327,7 @@ static int ldif_read_ntSecurityDescriptor(struct ldb_context *ldb, void *mem_ctx
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
                /* If this does not parse, then it is probably SDDL, and we should try it that way */
                
-               struct dom_sid *sid = samdb_domain_sid(ldb);
+               const struct dom_sid *sid = samdb_domain_sid(ldb);
                talloc_free(sd);
                sd = sddl_decode(mem_ctx, (const char *)in->data, sid);
                if (sd == NULL) {