From 2c0a1f53910a6be9515e4f456426a73a9aa72308 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 29 Jan 2005 03:17:14 +0000 Subject: r5084: - handle arbitrary data in the NULL record reply type for nbt name queries - fixed unaligned pulls at the end of the packet in the ndr lib (This used to be commit 61c43509f7a538541d87bd505ca241e08a50f605) --- source4/librpc/ndr/libndr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/librpc/ndr/libndr.h') diff --git a/source4/librpc/ndr/libndr.h b/source4/librpc/ndr/libndr.h index 7070ae80ec..5485c232b4 100644 --- a/source4/librpc/ndr/libndr.h +++ b/source4/librpc/ndr/libndr.h @@ -185,7 +185,7 @@ enum ndr_err_code { } \ ndr->offset = (ndr->offset + (n-1)) & ~(n-1); \ } \ - if (ndr->offset >= ndr->data_size) { \ + if (ndr->offset > ndr->data_size) { \ return ndr_pull_error(ndr, NDR_ERR_BUFSIZE, "Pull align %u", n); \ } \ } while(0) -- cgit