From: Volker Lendecke Date: Tue, 12 Jun 2018 19:15:55 +0000 (+0200) Subject: dsdb: Fix CID 1436918 Unchecked return value X-Git-Tag: tevent-0.9.37~381 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4039232e3393b4509c007e7c85474cfc6c686ef;p=thirdparty%2Fsamba.git dsdb: Fix CID 1436918 Unchecked return value Signed-off-by: Volker Lendecke Reviewed-by: Andrew Bartlett --- 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);