1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-05 12:23:50 +03:00

Changes to make the default prefix /usr/local/samba - as it was in 1.9.18p10.

acconfig.h configure configure.in include/config.h.in: Fixes to DEC OSF1.
libsmb/nmblib.c: Fixes to nmbd jumps in scope names.
Jeremy.
This commit is contained in:
Jeremy Allison
-
parent 30af39ae1e
commit 5ad77769be
6 changed files with 706 additions and 482 deletions

View File

@@ -218,10 +218,11 @@ static int parse_nmb_name(char *inbuf,int offset,int length, struct nmb_name *na
/* now the domain parts (if any) */
n = 0;
while ((m=ubuf[offset])) {
while (ubuf[offset]) {
/* we can have pointers within the domain part as well */
if (!handle_name_ptrs(ubuf,&offset,length,&got_pointer,&ret)) return(0);
m = ubuf[offset];
if (!got_pointer) ret += m+1;
if (n) name->scope[n++] = '.';
if (m+2+offset>length || n+m+1>sizeof(name->scope)) return(0);