The Samba-Bugzilla – Attachment 4849 Details for
Bug 6811
pam_winbind references freed memory.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am format patch for 3.3.9.
0001-Fix-bug-6811-pam_winbind-references-freed-memory.patch (text/plain), 1.43 KB, created by
Jeremy Allison
on 2009-10-14 14:50:36 UTC
(
hide
)
Description:
git-am format patch for 3.3.9.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2009-10-14 14:50:36 UTC
Size:
1.43 KB
patch
obsolete
>From 8d96404651ed88932cc419cfc978c3599bbc954c Mon Sep 17 00:00:00 2001 >From: Bo Yang <boyang@samba.org> >Date: Wed, 14 Oct 2009 12:47:49 -0700 >Subject: [PATCH] Fix bug 6811 - pam_winbind references freed memory. > s3: Fix reference to freed memory in pam_winbind. > >--- > source/nsswitch/pam_winbind.c | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/source/nsswitch/pam_winbind.c b/source/nsswitch/pam_winbind.c >index 4dcfe73..0dcd084 100644 >--- a/source/nsswitch/pam_winbind.c >+++ b/source/nsswitch/pam_winbind.c >@@ -976,7 +976,8 @@ static bool winbind_name_to_sid_string(struct pwb_context *ctx, > char *sid_list_buffer, > int sid_list_buffer_size) > { >- const char* sid_string; >+ const char* sid_string = NULL; >+ char *sid_str = NULL; > > /* lookup name? */ > if (IS_SID_STRING(name)) { >@@ -985,7 +986,6 @@ static bool winbind_name_to_sid_string(struct pwb_context *ctx, > wbcErr wbc_status; > struct wbcDomainSid sid; > enum wbcSidType type; >- char *sid_str; > > _pam_log_debug(ctx, LOG_DEBUG, > "no sid given, looking up: %s\n", name); >@@ -1002,15 +1002,16 @@ static bool winbind_name_to_sid_string(struct pwb_context *ctx, > return false; > } > >- wbcFreeMemory(sid_str); > sid_string = sid_str; > } > > if (!safe_append_string(sid_list_buffer, sid_string, > sid_list_buffer_size)) { >+ wbcFreeMemory(sid_str); > return false; > } > >+ wbcFreeMemory(sid_str); > return true; > } > >-- >1.5.4.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
obnox
:
review+
Actions:
View
Attachments on
bug 6811
:
4846
|
4847
|
4848
| 4849