mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +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:
parent
7a1e69ebb7
commit
9bf489d8d5
@ -341,7 +341,7 @@ subnet %s - name not found.\n", nmb_namestr(&nmb->question.question_name),
|
||||
|
||||
namerec = subrec->namelist;
|
||||
|
||||
while (buf < bufend) {
|
||||
while (PTR_DIFF(bufend, buf) > 0) {
|
||||
if( (namerec->data.source == SELF_NAME) || (namerec->data.source == PERMANENT_NAME) ) {
|
||||
int name_type = namerec->name.name_type;
|
||||
unstring name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user