summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-08-12 23:02:45 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-08-12 23:02:45 +0000
commit927d1875f0c09fe7b2e1c1bc4b1af2c0b8de0f7c (patch)
treeff551c2f90134b828d67e022b53af9e11045a80c /source/lib
parent331473769161fa8bc1703fc66d5cbe47885d120a (diff)
downloadsamba-927d1875f0c09fe7b2e1c1bc4b1af2c0b8de0f7c.tar.gz
samba-927d1875f0c09fe7b2e1c1bc4b1af2c0b8de0f7c.tar.xz
samba-927d1875f0c09fe7b2e1c1bc4b1af2c0b8de0f7c.zip
charset.c: Fixed bug with 'valid chars' param.
loadparm.c: Fixed bug with 'valid chars' param. nameelect.c:Unregister the 1b name from the WINS server when unbecoming master. nameservresp.c: Fix nasty browse bug where we were sending the query to the wrong ip address. Jeremy (jallison@whistle.com)
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/charset.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/lib/charset.c b/source/lib/charset.c
index 6b4f0b07bcb..55e2239b559 100644
--- a/source/lib/charset.c
+++ b/source/lib/charset.c
@@ -232,6 +232,15 @@ void codepage_initialise(int client_codepage)
{
int i;
unsigned char (*cp)[4] = NULL;
+ static BOOL done = False;
+
+ if(done == True)
+ {
+ DEBUG(6,
+ ("codepage_initialise: called twice - ignoring second client code page = %d\n",
+ client_codepage));
+ return;
+ }
DEBUG(6,("codepage_initialise: client code page = %d\n", client_codepage));
@@ -259,6 +268,8 @@ void codepage_initialise(int client_codepage)
for(i = 0; (cp[i][0] != '\0') && (cp[i][1] != '\0'); i++)
add_dos_char(cp[i][0], (BOOL)cp[i][2], cp[i][1], (BOOL)cp[i][3]);
}
+
+ done = True;
}
/*******************************************************************