mirror of
https://github.com/samba-team/samba.git
synced 2025-08-29 13:49:30 +03:00
s3: nmbd: Fix strict overflow checking compiler warning.
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
7a1e69ebb7
commit
9bf489d8d5
@ -341,7 +341,7 @@ subnet %s - name not found.\n", nmb_namestr(&nmb->question.question_name),
|
|||||||
|
|
||||||
namerec = subrec->namelist;
|
namerec = subrec->namelist;
|
||||||
|
|
||||||
while (buf < bufend) {
|
while (PTR_DIFF(bufend, buf) > 0) {
|
||||||
if( (namerec->data.source == SELF_NAME) || (namerec->data.source == PERMANENT_NAME) ) {
|
if( (namerec->data.source == SELF_NAME) || (namerec->data.source == PERMANENT_NAME) ) {
|
||||||
int name_type = namerec->name.name_type;
|
int name_type = namerec->name.name_type;
|
||||||
unstring name;
|
unstring name;
|
||||||
|
Reference in New Issue
Block a user