diff options
author | Volker Lendecke <vl@samba.org> | 2010-01-23 13:30:04 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-01-23 14:35:37 +0100 |
commit | 2002b4e4c23d1a5392c4c09ecfb9b0e9f34487ae (patch) | |
tree | 559007e36faa0bf9d7f6dcc1fa505e7580928e3a /source3 | |
parent | c2c71b8e053ea5a619c94d9dc30a01ae3627da91 (diff) | |
download | samba-2002b4e4c23d1a5392c4c09ecfb9b0e9f34487ae.tar.gz samba-2002b4e4c23d1a5392c4c09ecfb9b0e9f34487ae.tar.bz2 samba-2002b4e4c23d1a5392c4c09ecfb9b0e9f34487ae.zip |
s3: Remove a call to string_sid_talloc
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpcclient/cmd_lsarpc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c index 3e7d1851db..04aec66217 100644 --- a/source3/rpcclient/cmd_lsarpc.c +++ b/source3/rpcclient/cmd_lsarpc.c @@ -451,8 +451,12 @@ static NTSTATUS cmd_lsa_lookup_sids3(struct rpc_pipe_client *cli, } for (i = 0; i < sids.num_sids; i++) { - sids.sids[i].sid = string_sid_talloc(sids.sids, argv[i + 1]); - if (!sids.sids[i].sid) { + sids.sids[i].sid = talloc(sids.sids, struct dom_sid); + if (sids.sids[i].sid == NULL) { + result = NT_STATUS_NO_MEMORY; + goto done; + } + if (!string_to_sid(sids.sids[i].sid, argv[i+1])) { result = NT_STATUS_INVALID_SID; goto done; } |