mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Fix for stack return from "Jim McDonough" <jmcdough@hotmail.com>.
Jeremy.
(This used to be commit 7f45836c85
)
This commit is contained in:
parent
8f873d5676
commit
bd228fb059
@ -63,12 +63,17 @@ static void create_wks_info_100(WKS_INFO_100 *inf)
|
||||
|
||||
uint32 _wks_query_info(pipes_struct *p, WKS_Q_QUERY_INFO *q_u, WKS_R_QUERY_INFO *r_u)
|
||||
{
|
||||
WKS_INFO_100 wks100;
|
||||
WKS_INFO_100 *wks100 = NULL;
|
||||
|
||||
DEBUG(5,("_wks_query_info: %d\n", __LINE__));
|
||||
|
||||
create_wks_info_100(&wks100);
|
||||
init_wks_r_query_info(r_u, q_u->switch_value, &wks100, NT_STATUS_NOPROBLEMO);
|
||||
wks100 = (WKS_INFO_100 *)talloc_zero(p->mem_ctx, sizeof(WKS_INFO_100));
|
||||
|
||||
if (!wks100)
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
|
||||
create_wks_info_100(wks100);
|
||||
init_wks_r_query_info(r_u, q_u->switch_value, wks100, NT_STATUS_NOPROBLEMO);
|
||||
|
||||
DEBUG(5,("_wks_query_info: %d\n", __LINE__));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user