summaryrefslogtreecommitdiff
path: root/source3/librpc/ndr/libndr.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-03-13 04:37:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:35 -0500
commit5e74df4202f38c1bee05d45cd5e576a97ed6f821 (patch)
tree9b268c7d008d80ff9c04f62f1813fadca2011b60 /source3/librpc/ndr/libndr.h
parent668da636e32078b4a23199a02dc9a68d099e8bac (diff)
downloadsamba-5e74df4202f38c1bee05d45cd5e576a97ed6f821.tar.gz
samba-5e74df4202f38c1bee05d45cd5e576a97ed6f821.tar.bz2
samba-5e74df4202f38c1bee05d45cd5e576a97ed6f821.zip
r21813: fixed an integer overflow error in the ndr push code.
Jerry, you might like to consider this for 3.0.25 (This used to be commit 4b1c4cd25aac98ce6a9959e9708f72b0b65e20af)
Diffstat (limited to 'source3/librpc/ndr/libndr.h')
-rw-r--r--source3/librpc/ndr/libndr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/librpc/ndr/libndr.h b/source3/librpc/ndr/libndr.h
index 3c2377f57f..23e9e06bdd 100644
--- a/source3/librpc/ndr/libndr.h
+++ b/source3/librpc/ndr/libndr.h
@@ -224,7 +224,7 @@ enum ndr_compression_alg {
} \
} while(0)
-#define NDR_PUSH_NEED_BYTES(ndr, n) NDR_CHECK(ndr_push_expand(ndr, ndr->offset+(n)))
+#define NDR_PUSH_NEED_BYTES(ndr, n) NDR_CHECK(ndr_push_expand(ndr, n))
#define NDR_PUSH_ALIGN(ndr, n) do { \
if (!(ndr->flags & LIBNDR_FLAG_NOALIGN)) { \