diff options
author | Andreas Schneider <asn@samba.org> | 2010-06-16 11:44:36 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2010-06-16 12:03:46 +0200 |
commit | 47ae4a518c5eb7c02d3f6c65f64d2ac490a90e83 (patch) | |
tree | a9fc7a7ec7899ad42a9059a6c452232e0a52e63c /source3/include/proto.h | |
parent | 18f3e5113ae18e120770ba93b0d36a7b176b0c52 (diff) | |
download | samba-47ae4a518c5eb7c02d3f6c65f64d2ac490a90e83.tar.gz samba-47ae4a518c5eb7c02d3f6c65f64d2ac490a90e83.tar.bz2 samba-47ae4a518c5eb7c02d3f6c65f64d2ac490a90e83.zip |
s3-spoolss: Provide a memory context for clean_up_driver_struct().
If we use a stack variable to setup spoolss_AddDriverInfoCtr this would
segfault with a talloc bad magic value.
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r-- | source3/include/proto.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index cd8d94261e..31a1d45a27 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4750,7 +4750,8 @@ bool delete_a_form(nt_forms_struct **list, const char *del_name, int *count, WER void update_a_form(nt_forms_struct **list, struct spoolss_AddFormInfo1 *form, int count); int get_ntdrivers(fstring **list, const char *architecture, uint32 version); const char *get_short_archi(const char *long_archi); -WERROR clean_up_driver_struct(struct pipes_struct *rpc_pipe, +WERROR clean_up_driver_struct(TALLOC_CTX *mem_ctx, + struct pipes_struct *rpc_pipe, struct spoolss_AddDriverInfoCtr *r); WERROR move_driver_to_download_area(struct pipes_struct *p, struct spoolss_AddDriverInfoCtr *r, |