diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-12-03 07:20:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:20 -0500 |
commit | 6e6374cb5bcffb4df8bdb0a83327fff92b61ac84 (patch) | |
tree | fa45bc8c1a7281492f39069e5edd86da6d0c5d4e /source4/smb_server | |
parent | e5ce904ddbd6175ba86ed827bf096b76b11b5511 (diff) | |
download | samba-6e6374cb5bcffb4df8bdb0a83327fff92b61ac84.tar.gz samba-6e6374cb5bcffb4df8bdb0a83327fff92b61ac84.tar.xz samba-6e6374cb5bcffb4df8bdb0a83327fff92b61ac84.zip |
r4055: fixed more places to use type safe allocation macros
(This used to be commit eec698254f67365f27b4b7569fa982e22472aca1)
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/nttrans.c | 2 | ||||
-rw-r--r-- | source4/smb_server/trans2.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/smb_server/nttrans.c b/source4/smb_server/nttrans.c index 0a268ccbf4e..31391b88c10 100644 --- a/source4/smb_server/nttrans.c +++ b/source4/smb_server/nttrans.c @@ -383,7 +383,7 @@ void reply_nttrans(struct smbsrv_request *req) } /* parse out the setup words */ - trans.in.setup = talloc(req, trans.in.setup_count * sizeof(uint16_t)); + trans.in.setup = talloc_array_p(req, uint16_t, trans.in.setup_count); if (!trans.in.setup) { req_reply_error(req, NT_STATUS_NO_MEMORY); return; diff --git a/source4/smb_server/trans2.c b/source4/smb_server/trans2.c index 427583954ac..8f995e2f6a0 100644 --- a/source4/smb_server/trans2.c +++ b/source4/smb_server/trans2.c @@ -1350,7 +1350,7 @@ void reply_trans_generic(struct smbsrv_request *req, uint8_t command) } /* parse out the setup words */ - trans.in.setup = talloc(req, trans.in.setup_count * sizeof(uint16_t)); + trans.in.setup = talloc_array_p(req, uint16_t, trans.in.setup_count); if (trans.in.setup_count && !trans.in.setup) { req_reply_error(req, NT_STATUS_NO_MEMORY); return; |