OSDN Git Service

authz-simple: Check that 'identity' property is set
authorKevin Wolf <kwolf@redhat.com>
Tue, 17 Nov 2020 16:30:45 +0000 (17:30 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 18 Nov 2020 10:51:35 +0000 (10:51 +0000)
commitc2aa8a3d7e5ce57fa3df310c9b7ca48fcbf9d4ad
tree6f7e285c4d3140958971600005fa94fdffba5304
parent3428455df9302b2b924e380cb90a77ca1ce5001e
authz-simple: Check that 'identity' property is set

If the 'identify' property is not set, we'll pass a NULL pointer to
g_str_equal() and crash. Catch the error condition during the creation
of the object.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
authz/simple.c