diff options
author | Luke Leighton <lkcl@samba.org> | 1999-11-20 18:17:29 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-11-20 18:17:29 +0000 |
commit | ef8ced0ca6688f037d74a5e26b52b41afce37682 (patch) | |
tree | ecc02616d66077bbc690a96a179a0d44536c8303 | |
parent | 476828342bd6552eb20f717595b5f4cb7397f33e (diff) | |
download | samba-ef8ced0ca6688f037d74a5e26b52b41afce37682.tar.gz samba-ef8ced0ca6688f037d74a5e26b52b41afce37682.tar.bz2 samba-ef8ced0ca6688f037d74a5e26b52b41afce37682.zip |
dynamic memory allocation i added a month ago: forgot to ZERO_STRUCT()
some of the server-side stuff. Realloc() was being used, so it
Realloc()d some random area of memory. oops.dynamic memory allocation i added a month ago: forgot to ZERO_STRUCT()
some of the server-side stuff. Realloc() was being used, so it
Realloc()d some random area of memory. oops.dynamic memory allocation i added a month ago: forgot to ZERO_STRUCT()
some of the server-side stuff. Realloc() was being used, so it
Realloc()d some random area of memory. oops.
(This used to be commit a51f62f4cf610c23e45251cedb543144747a3e54)
-rw-r--r-- | source3/rpc_parse/parse_samr.c | 2 | ||||
-rw-r--r-- | source3/rpc_server/srv_samr.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c index c50a883ca1..dad9d412e1 100644 --- a/source3/rpc_parse/parse_samr.c +++ b/source3/rpc_parse/parse_samr.c @@ -3843,6 +3843,8 @@ BOOL make_samr_r_lookup_rids(SAMR_R_LOOKUP_RIDS *r_u, for (i = 0; i < num_names; i++) { int len = name[i] != NULL ? strlen(name[i]) : 0; + DEBUG(10,("name[%d]:%s\ttype:%d\n", + i, name[i], type[i])); make_uni_hdr(&(r_u->hdr_name[i]), len); make_unistr2(&(r_u->uni_name[i]), name[i], len); r_u->type[i] = type[i]; diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c index e55a6b2ce8..bc3a842677 100644 --- a/source3/rpc_server/srv_samr.c +++ b/source3/rpc_server/srv_samr.c @@ -1432,6 +1432,7 @@ static void samr_reply_query_useraliases(SAMR_Q_QUERY_USERALIASES *q_u, static void api_samr_query_useraliases( pipes_struct *p, prs_struct *data, prs_struct *rdata) { SAMR_Q_QUERY_USERALIASES q_u; + ZERO_STRUCT(q_u); samr_io_q_query_useraliases("", &q_u, data, 0); samr_reply_query_useraliases(&q_u, rdata); samr_free_q_query_useraliases(&q_u); @@ -1797,6 +1798,7 @@ static void samr_reply_lookup_rids(SAMR_Q_LOOKUP_RIDS *q_u, static void api_samr_lookup_rids( pipes_struct *p, prs_struct *data, prs_struct *rdata) { SAMR_Q_LOOKUP_RIDS q_u; + ZERO_STRUCT(q_u); samr_io_q_lookup_rids("", &q_u, data, 0); samr_reply_lookup_rids(&q_u, rdata); samr_free_q_lookup_rids(&q_u); |