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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user