diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-30 09:37:08 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-30 09:38:12 +0200 |
commit | bf844aed5b6ad6a9a5287ebd9b7da121fa9dd1a8 (patch) | |
tree | e6a199b449906f46ef8146bfd4aa1c4076bfab16 /source4/auth/session.c | |
parent | 6abfe8904a1024512c0ea8bb4844e4409e8d994b (diff) | |
download | samba-bf844aed5b6ad6a9a5287ebd9b7da121fa9dd1a8.tar.gz |
s4:auth/session.c - suppress a warning when freeing "group_string"
Diffstat (limited to 'source4/auth/session.c')
-rw-r--r-- | source4/auth/session.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/auth/session.c b/source4/auth/session.c index 1be98742df0..e14644d6d87 100644 --- a/source4/auth/session.c +++ b/source4/auth/session.c @@ -170,15 +170,17 @@ _PUBLIC_ NTSTATUS auth_generate_session_info(TALLOC_CTX *mem_ctx, } for (i = 0; i < server_info->n_domain_groups; i++) { - const char *group_string; + char *group_string; const char *group_dn; DATA_BLOB group_blob; - group_string = dom_sid_string(tmp_ctx, server_info->domain_groups[i]); + + group_string = dom_sid_string(tmp_ctx, + server_info->domain_groups[i]); NT_STATUS_HAVE_NO_MEMORY_AND_FREE(group_string, server_info); group_dn = talloc_asprintf(tmp_ctx, "<SID=%s>", group_string); - NT_STATUS_HAVE_NO_MEMORY_AND_FREE(group_dn, server_info); talloc_free(group_string); + NT_STATUS_HAVE_NO_MEMORY_AND_FREE(group_dn, server_info); group_blob = data_blob_string_const(group_dn); /* This function takes in memberOf values and expands |