summaryrefslogtreecommitdiff
path: root/source3/include/proto.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-05-17 19:17:16 +0000
committerJeremy Allison <jra@samba.org>2000-05-17 19:17:16 +0000
commit819c15449882a0c08689a4565bf0b31f756f05bd (patch)
treebd08a1c3992905b20c2342209b214dcb95125d4b /source3/include/proto.h
parentec6c547390494c7a04b14aa787bd1a163d6ee65b (diff)
downloadsamba-819c15449882a0c08689a4565bf0b31f756f05bd.tar.gz
samba-819c15449882a0c08689a4565bf0b31f756f05bd.tar.bz2
samba-819c15449882a0c08689a4565bf0b31f756f05bd.zip
Fixed bug I introduced last night (sorry). Now truncate incoming prs_struct
buffer size to exact size of incoming data to prevent read overruns into slop space. Jeremy. (This used to be commit aa1a4f46da9584240cd6cee6fb652aa73e77015c)
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r--source3/include/proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index cf3929f68d..45fd66cd09 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2064,6 +2064,7 @@ BOOL prs_read(prs_struct *ps, int fd, size_t len, int timeout);
void prs_mem_free(prs_struct *ps);
void prs_give_memory(prs_struct *ps, char *buf, uint32 size, BOOL is_dynamic);
char *prs_take_memory(prs_struct *ps, uint32 *psize);
+BOOL prs_set_buffer_size(prs_struct *ps, uint32 newsize);
BOOL prs_grow(prs_struct *ps, uint32 extra_space);
BOOL prs_force_grow(prs_struct *ps, uint32 extra_space);
char *prs_data_p(prs_struct *ps);