summaryrefslogtreecommitdiffstats
path: root/source/param
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-03-27 20:25:34 +0000
committerJeremy Allison <jra@samba.org>2000-03-27 20:25:34 +0000
commit26963f2f8ec923991efecf6ac177fb17e7a924b0 (patch)
treec5a4149e953b838b344db0965cba991eb86f4c17 /source/param
parent426c90433396a95033eefcc4af97603abc934221 (diff)
downloadsamba-26963f2f8ec923991efecf6ac177fb17e7a924b0.tar.gz
samba-26963f2f8ec923991efecf6ac177fb17e7a924b0.tar.xz
samba-26963f2f8ec923991efecf6ac177fb17e7a924b0.zip
Fixed crash bug in new handle_netbios_name code.
Jeremy.
Diffstat (limited to 'source/param')
-rw-r--r--source/param/loadparm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index 4f6178a5690..ab96d854944 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -573,7 +573,7 @@ static struct parm_struct parm_table[] =
{"path", P_STRING, P_LOCAL, &sDefault.szPath, NULL, NULL, FLAG_BASIC|FLAG_SHARE|FLAG_PRINT|FLAG_DOS_STRING},
{"directory", P_STRING, P_LOCAL, &sDefault.szPath, NULL, NULL, FLAG_DOS_STRING},
{"workgroup", P_USTRING, P_GLOBAL, &Globals.szWorkGroup, NULL, NULL, FLAG_BASIC|FLAG_DOS_STRING},
- {"netbios name", P_UGSTRING,P_GLOBAL, global_myname, handle_netbios_name, NULL, FLAG_BASIC|FLAG_DOS_STRING},
+ {"netbios name", P_UGSTRING,P_GLOBAL, NULL, handle_netbios_name, NULL, FLAG_BASIC|FLAG_DOS_STRING},
{"netbios aliases", P_STRING, P_GLOBAL, &Globals.szNetbiosAliases, NULL, NULL, FLAG_DOS_STRING},
{"netbios scope", P_UGSTRING,P_GLOBAL, global_scope, NULL, NULL, FLAG_DOS_STRING},
{"server string", P_STRING, P_GLOBAL, &Globals.szServerString, NULL, NULL, FLAG_BASIC|FLAG_DOS_STRING},
@@ -1934,6 +1934,7 @@ BOOL lp_file_list_changed(void)
/***************************************************************************
Run standard_sub_basic on netbios name... needed because global_myname
is not accessed through any lp_ macro.
+ Note: We must *NOT* use string_set() here as ptr points to global_myname.
***************************************************************************/
static BOOL handle_netbios_name(char *pszParmValue,char **ptr)
@@ -1944,7 +1945,6 @@ static BOOL handle_netbios_name(char *pszParmValue,char **ptr)
standard_sub_basic(netbios_name);
strupper(netbios_name);
- string_set(ptr,netbios_name);
/*
* Convert from UNIX to DOS string - the UNIX to DOS converter