The Samba-Bugzilla – Attachment 2104 Details for
Bug 4050
"testparm --parameter-name" crashes with segmentation fault
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to solve this problem
patch-param_loadparm.c (text/plain), 641 bytes, created by
Iouri Ivliev
on 2006-08-25 09:49:24 UTC
(
hide
)
Description:
Patch to solve this problem
Filename:
MIME Type:
Creator:
Iouri Ivliev
Created:
2006-08-25 09:49:24 UTC
Size:
641 bytes
patch
obsolete
>--- param/loadparm.c.orig Fri Aug 25 13:40:09 2006 >+++ param/loadparm.c Fri Aug 25 13:46:28 2006 >@@ -3852,7 +3852,7 @@ > > BOOL dump_a_parameter(int snum, char *parm_name, FILE * f, BOOL isGlobal) > { >- service * pService = ServicePtrs[snum]; >+ service * pService = NULL; > int i; > BOOL result = False; > parm_class p_class; >@@ -3883,8 +3883,13 @@ > if (isGlobal) { > p_class = P_GLOBAL; > flag = FLAG_GLOBAL; >- } else >+ } else { >+ if (!VALID_SNUM(snum)) { >+ return False; >+ } >+ pService = ServicePtrs[snum]; > p_class = P_LOCAL; >+ } > > for (i = 0; parm_table[i].label; i++) { > if (strwicmp(parm_table[i].label, parm_name) == 0 &&
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 4050
: 2104