diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-08-22 02:54:21 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-08-22 02:54:21 +0000 |
commit | 3f3f47b0bd8d089120d267cfad1976db95cd8ebe (patch) | |
tree | 145ed3a2c31999fa352c123b3a366a96ce4dde62 /source3/rpc_server/srv_util.c | |
parent | bce4d95ca9f0f1b175f5eff682c961754d494253 (diff) | |
download | samba-3f3f47b0bd8d089120d267cfad1976db95cd8ebe.tar.gz samba-3f3f47b0bd8d089120d267cfad1976db95cd8ebe.tar.bz2 samba-3f3f47b0bd8d089120d267cfad1976db95cd8ebe.zip |
added ASSERT() and ASSERT_ARRAY() macros and sprinkled them liberally
in the rpc code.
(This used to be commit e6ce1c5b5a9f29d8fcbbd23019186ff5c600e795)
Diffstat (limited to 'source3/rpc_server/srv_util.c')
-rw-r--r-- | source3/rpc_server/srv_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_util.c b/source3/rpc_server/srv_util.c index c316661146..80e10a3d3a 100644 --- a/source3/rpc_server/srv_util.c +++ b/source3/rpc_server/srv_util.c @@ -94,6 +94,7 @@ BOOL lookup_wellknown_sid_from_name(char *windows_name, DOM_SID *psid) rnp = &builtin_alias_rids[i]; if(strequal(rnp->name, windows_name)) { string_to_sid( psid, "S-1-5-32" ); + ASSERT_ARRAY(psid->sub_auths, psid->num_auths+1); psid->sub_auths[psid->num_auths++] = rnp->rid; return True; } @@ -103,6 +104,7 @@ BOOL lookup_wellknown_sid_from_name(char *windows_name, DOM_SID *psid) rnp = &domain_user_rids[i]; if(strequal(rnp->name, windows_name)) { *psid = global_machine_sid; + ASSERT_ARRAY(psid->sub_auths, psid->num_auths+1); psid->sub_auths[psid->num_auths++] = rnp->rid; return True; } @@ -112,6 +114,7 @@ BOOL lookup_wellknown_sid_from_name(char *windows_name, DOM_SID *psid) rnp = &domain_group_rids[i]; if(strequal(rnp->name, windows_name)) { *psid = global_machine_sid; + ASSERT_ARRAY(psid->sub_auths, psid->num_auths+1); psid->sub_auths[psid->num_auths++] = rnp->rid; return True; } |