git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nbt: Fix offset check in ndr_pull_component
[metze/samba/wip.git]
/
librpc
/
ndr
/
ndr_nbt.c
diff --git
a/librpc/ndr/ndr_nbt.c
b/librpc/ndr/ndr_nbt.c
index 02297d3fdfa92f7f26007d9ca40f7dda9f7dc9af..f2a1ca3ba5fff4f1f28f7c2037c38dbf60b2e870 100644
(file)
--- a/
librpc/ndr/ndr_nbt.c
+++ b/
librpc/ndr/ndr_nbt.c
@@
-76,7
+76,7
@@
static enum ndr_err_code ndr_pull_component(struct ndr_pull *ndr,
return ndr_pull_error(ndr, NDR_ERR_STRING,
"BAD NBT NAME component");
}
- if (*offset + len +
2
> ndr->data_size) {
+ if (*offset + len +
1
> ndr->data_size) {
return ndr_pull_error(ndr, NDR_ERR_STRING,
"BAD NBT NAME component");
}