git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a243473
)
nbt: Fix offset check in ndr_pull_component
author
Kai Blin
<kai@samba.org>
Fri, 30 Sep 2011 02:30:39 +0000
(19:30 -0700)
committer
Kai Blin
<kai@samba.org>
Fri, 4 Nov 2011 14:51:59 +0000
(15:51 +0100)
librpc/ndr/ndr_nbt.c
patch
|
blob
|
history
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");
}