diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-08-30 14:00:50 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-09-11 18:46:10 +1000 |
commit | 6d78e11e17b80bc932e5f4fb1ff6b27909f405d0 (patch) | |
tree | 8af514c1f956aa589bbe6ee7de9fe9e3d6080c6b /source4/dsdb | |
parent | 8ff6bc2350894924ad362e0f058a24de3e459270 (diff) | |
download | samba-6d78e11e17b80bc932e5f4fb1ff6b27909f405d0.tar.gz samba-6d78e11e17b80bc932e5f4fb1ff6b27909f405d0.tar.bz2 samba-6d78e11e17b80bc932e5f4fb1ff6b27909f405d0.zip |
libcli/security make sec_privilege_id() return SEC_PRIV_INVALID on failure.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/samdb_privilege.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/samdb_privilege.c b/source4/dsdb/samdb/samdb_privilege.c index fd74133e2f..6186097d78 100644 --- a/source4/dsdb/samdb/samdb_privilege.c +++ b/source4/dsdb/samdb/samdb_privilege.c @@ -69,7 +69,7 @@ static NTSTATUS samdb_privilege_setup_sid(struct ldb_context *pdb, TALLOC_CTX *m for (i=0;i<el->num_values;i++) { const char *priv_str = (const char *)el->values[i].data; enum sec_privilege privilege = sec_privilege_id(priv_str); - if (privilege == -1) { + if (privilege == SEC_PRIV_INVALID) { DEBUG(1,("Unknown privilege '%s' in samdb\n", priv_str)); continue; |