mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
dsdb: Fix CID 1436918 Unchecked return value
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
2678b4c25f
commit
c4039232e3
@ -189,11 +189,13 @@ static void add_session_data(
|
||||
struct security_token *token = NULL;
|
||||
struct dom_sid *sid = NULL;
|
||||
struct GUID session_id;
|
||||
bool ok;
|
||||
|
||||
sess = talloc_zero(ctx, struct auth_session_info);
|
||||
token = talloc_zero(ctx, struct security_token);
|
||||
sid = talloc_zero(ctx, struct dom_sid);
|
||||
string_to_sid(sid, user_sid);
|
||||
ok = string_to_sid(sid, user_sid);
|
||||
assert_true(ok);
|
||||
token->sids = sid;
|
||||
sess->security_token = token;
|
||||
GUID_from_string(session, &session_id);
|
||||
|
Loading…
Reference in New Issue
Block a user