From c4039232e3393b4509c007e7c85474cfc6c686ef Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 12 Jun 2018 21:15:55 +0200 Subject: [PATCH] dsdb: Fix CID 1436918 Unchecked return value Signed-off-by: Volker Lendecke Reviewed-by: Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/tests/test_group_audit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source4/dsdb/samdb/ldb_modules/tests/test_group_audit.c b/source4/dsdb/samdb/ldb_modules/tests/test_group_audit.c index 26392b78362..2c32b658a21 100644 --- a/source4/dsdb/samdb/ldb_modules/tests/test_group_audit.c +++ b/source4/dsdb/samdb/ldb_modules/tests/test_group_audit.c @@ -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);