summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/nmbd/nmbd_processlogon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nmbd/nmbd_processlogon.c b/source3/nmbd/nmbd_processlogon.c
index fa2a8c1cef..ae4011eb8f 100644
--- a/source3/nmbd/nmbd_processlogon.c
+++ b/source3/nmbd/nmbd_processlogon.c
@@ -114,7 +114,7 @@ logons are not enabled.\n", inet_ntoa(p->ip) ));
}
q = skip_string(getdc,1);
- if (PTR_DIFF(q + 5, buf) >= len) {
+ if (PTR_DIFF(q + 5, buf) > len) {
DEBUG(0,("process_logon_packet: bad packet\n"));
return;
}
@@ -215,7 +215,7 @@ logons are not enabled.\n", inet_ntoa(p->ip) ));
q += 16;
}
- if (PTR_DIFF(q + 8, buf) >= len) {
+ if (PTR_DIFF(q + 8, buf) > len) {
DEBUG(0,("process_logon_packet: bad packet\n"));
return;
}
@@ -334,7 +334,7 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n",
q += 16;
}
- if (PTR_DIFF(q + 8, buf) >= len) {
+ if (PTR_DIFF(q + 8, buf) > len) {
DEBUG(0,("process_logon_packet: bad packet\n"));
return;
}