diff options
author | Simo Sorce <idra@samba.org> | 2004-03-08 09:52:17 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2004-03-08 09:52:17 +0000 |
commit | 9c15b5b0ec08bd13a7f3e888482165207926e7f9 (patch) | |
tree | f1d4cf6d9869b52c6015e862adc42b28b0f5844e /source3/smbd | |
parent | cd1be774adc1a2509d93e65e48088b5351c99a13 (diff) | |
download | samba-9c15b5b0ec08bd13a7f3e888482165207926e7f9.tar.gz samba-9c15b5b0ec08bd13a7f3e888482165207926e7f9.tar.bz2 samba-9c15b5b0ec08bd13a7f3e888482165207926e7f9.zip |
2 fixes to enhance readability of source code and debug messages
1 fix for a memleak
(This used to be commit 9f3b0295fe7bd6c0c3a6061e5d00e7b88f702b21)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/sec_ctx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/sec_ctx.c b/source3/smbd/sec_ctx.c index 9244f34394..97fe2dfaee 100644 --- a/source3/smbd/sec_ctx.c +++ b/source3/smbd/sec_ctx.c @@ -258,7 +258,7 @@ BOOL push_sec_ctx(void) ctx_p->token = dup_nt_token(sec_ctx_stack[sec_ctx_stack_ndx-1].token); if (! ctx_p->token) { - DEBUG(0, ("Out of memory in push_sec_ctx()\n")); + DEBUG(0, ("Out of memory on dup_nt_token() in push_sec_ctx()\n")); return False; } @@ -266,7 +266,7 @@ BOOL push_sec_ctx(void) if (ctx_p->ngroups != 0) { if (!(ctx_p->groups = malloc(ctx_p->ngroups * sizeof(gid_t)))) { - DEBUG(0, ("Out of memory in push_sec_ctx()\n")); + DEBUG(0, ("Out of memory on malloc() in push_sec_ctx()\n")); delete_nt_token(&ctx_p->token); return False; } @@ -278,7 +278,7 @@ BOOL push_sec_ctx(void) init_privilege(&ctx_p->privs); if (! NT_STATUS_IS_OK(dup_priv_set(ctx_p->privs, sec_ctx_stack[sec_ctx_stack_ndx-1].privs))) { - DEBUG(0, ("Out of memory in push_sec_ctx()\n")); + DEBUG(0, ("Out of memory on dup_priv_set() in push_sec_ctx()\n")); delete_nt_token(&ctx_p->token); destroy_privilege(&ctx_p->privs); return False; |