mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
prevent a bogus insure wild ptr message
This commit is contained in:
parent
1a30efdc2c
commit
1976a8f875
@ -171,13 +171,14 @@ static BOOL handle_name_ptrs(uchar *ubuf,int *offset,int length,
|
||||
parse a nmb name from "compressed" format to something readable
|
||||
return the space taken by the name, or 0 if the name is invalid
|
||||
******************************************************************/
|
||||
static int parse_nmb_name(char *inbuf,int offset,int length, struct nmb_name *name)
|
||||
static int parse_nmb_name(char *inbuf,int ofs,int length, struct nmb_name *name)
|
||||
{
|
||||
int m,n=0;
|
||||
uchar *ubuf = (uchar *)inbuf;
|
||||
int ret = 0;
|
||||
BOOL got_pointer=False;
|
||||
int loop_count=0;
|
||||
int offset = ofs;
|
||||
|
||||
if (length - offset < 2)
|
||||
return(0);
|
||||
|
Loading…
Reference in New Issue
Block a user