summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_processlogon.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-10-29 21:27:57 +0000
committerJeremy Allison <jra@samba.org>2003-10-29 21:27:57 +0000
commit5ca824a682bbcd9331f32935f9b423ae6d468816 (patch)
tree049e58740ad501eb0d888e98eac22006ff830250 /source3/nmbd/nmbd_processlogon.c
parente893948e04136ed5b9ba08373a93dd55f81e2e24 (diff)
downloadsamba-5ca824a682bbcd9331f32935f9b423ae6d468816.tar.gz
samba-5ca824a682bbcd9331f32935f9b423ae6d468816.tar.bz2
samba-5ca824a682bbcd9331f32935f9b423ae6d468816.zip
Fixes to check for wraps which could cause coredumps.
Jeremy. (This used to be commit 124a8ddae63adff4f601242a8e6d05abcaf4d9bf)
Diffstat (limited to 'source3/nmbd/nmbd_processlogon.c')
-rw-r--r--source3/nmbd/nmbd_processlogon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/nmbd/nmbd_processlogon.c b/source3/nmbd/nmbd_processlogon.c
index 2a6a6b66d1..816b351464 100644
--- a/source3/nmbd/nmbd_processlogon.c
+++ b/source3/nmbd/nmbd_processlogon.c
@@ -491,6 +491,8 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n",
/* Domain SID */
+#if 0
+ /* We must range check this. */
q += IVAL(q, 0) + 4; /* 4 byte length plus data */
q += 2; /* Alignment? */
@@ -500,6 +502,7 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n",
q += 4; /* NT version (0x1) */
q += 2; /* LMNT token (0xff) */
q += 2; /* LM20 token (0xff) */
+#endif
SAFE_FREE(db_info); /* Not sure whether we need to do anything useful with these */