better this way sync
authorVolker Birk <vb@pep-project.org>
Tue, 28 Jan 2020 22:44:53 +0100
branchsync
changeset 4368d69ffc8666be
parent 4367 6901d467848c
child 4369 182b2079bfcd
better this way
src/sync_api.c
     1.1 --- a/src/sync_api.c	Tue Jan 28 19:14:12 2020 +0100
     1.2 +++ b/src/sync_api.c	Tue Jan 28 22:44:53 2020 +0100
     1.3 @@ -315,7 +315,7 @@
     1.4          return status;
     1.5  
     1.6      // if identity is already disabled for sync do nothing
     1.7 -    if (!(ident->flags & PEP_idf_devicegroup) || (ident->flags & PEP_idf_not_for_sync))
     1.8 +    if (!(ident->flags & PEP_idf_devicegroup) && (ident->flags & PEP_idf_not_for_sync))
     1.9          return PEP_STATUS_OK;
    1.10  
    1.11      status = unset_identity_flags(session, ident, PEP_idf_devicegroup);