diff options
author | Jeremy Allison <jra@samba.org> | 2008-01-09 14:35:00 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-01-09 14:35:00 -0800 |
commit | 817e0d899d2604c8f0feabd6d0b4f20eae8bd2a1 (patch) | |
tree | 92e2c58f84d1c86d494580204a8e63e6d5f2f453 /source3 | |
parent | fbd9a15996ba4beb48c12a5632ca812e862e984c (diff) | |
download | samba-817e0d899d2604c8f0feabd6d0b4f20eae8bd2a1.tar.gz samba-817e0d899d2604c8f0feabd6d0b4f20eae8bd2a1.tar.bz2 samba-817e0d899d2604c8f0feabd6d0b4f20eae8bd2a1.zip |
Ensure we don't take address of one past buffer.
Jeremy.
(This used to be commit 318cbcfae51fc5dae549c60107d12480d8e478c8)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nmbd/nmbd_incomingrequests.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_incomingrequests.c b/source3/nmbd/nmbd_incomingrequests.c index 90773c1395..ebe1948141 100644 --- a/source3/nmbd/nmbd_incomingrequests.c +++ b/source3/nmbd/nmbd_incomingrequests.c @@ -331,7 +331,7 @@ subnet %s - name not found.\n", nmb_namestr(&nmb->question.question_name), /* this is not an exact calculation. the 46 is for the stats buffer and the 60 is to leave room for the header etc */ - bufend = &rdata[MAX_DGRAM_SIZE] - (18 + 46 + 60); + bufend = &rdata[MAX_DGRAM_SIZE-1] - (18 + 46 + 60); countptr = buf = rdata; buf += 1; buf0 = buf; |