The Samba-Bugzilla – Attachment 3246 Details for
Bug 5375
Crashed smb server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix
0001-Fix-bug-5375.patch (text/plain), 1.32 KB, created by
Volker Lendecke
on 2008-04-07 03:22:06 UTC
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2008-04-07 03:22:06 UTC
Size:
1.32 KB
patch
obsolete
>From d3c31aa36c451f0a19496cd33c0b055b466e6b09 Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Mon, 7 Apr 2008 10:19:25 +0200 >Subject: [PATCH] Fix bug 5375 > >Thanks to Moskvin for testing >--- > source/lib/util_str.c | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/source/lib/util_str.c b/source/lib/util_str.c >index cb8a100..6310e24 100644 >--- a/source/lib/util_str.c >+++ b/source/lib/util_str.c >@@ -1972,25 +1972,26 @@ int str_list_count( const char **list ) > } > > /****************************************************************************** >- version of standard_sub_basic() for string lists; uses alloc_sub_basic() >+ version of standard_sub_basic() for string lists; uses talloc_sub_basic() > for the work > *****************************************************************************/ > > bool str_list_sub_basic( char **list, const char *smb_name, > const char *domain_name ) > { >+ TALLOC_CTX *ctx = list; > char *s, *tmpstr; > > while ( *list ) { > s = *list; >- tmpstr = alloc_sub_basic(smb_name, domain_name, s); >+ tmpstr = talloc_sub_basic(ctx, smb_name, domain_name, s); > if ( !tmpstr ) { > DEBUG(0,("str_list_sub_basic: " > "alloc_sub_basic() return NULL!\n")); > return false; > } > >- SAFE_FREE(*list); >+ TALLOC_FREE(*list); > *list = tmpstr; > > list++; >-- >1.5.3.7 >
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
Actions:
View
Attachments on
bug 5375
:
3244
| 3246