src/sync_impl.c
branchkeysync
changeset 1105 3fbdd80f0e52
parent 1104 81cabcd37300
child 1110 d37d730fa8e5
     1.1 --- a/src/sync_impl.c	Wed Aug 31 12:10:26 2016 +0200
     1.2 +++ b/src/sync_impl.c	Wed Aug 31 12:51:52 2016 +0200
     1.3 @@ -64,6 +64,10 @@
     1.4      if (!(session && src))
     1.5          return PEP_ILLEGAL_VALUE;
     1.6  
     1.7 +    assert(session->inject_sync_msg);
     1.8 +    if (!session->inject_sync_msg)
     1.9 +        return PEP_SYNC_NO_INJECT_CALLBACK;
    1.10 +
    1.11      bool found = false;
    1.12      
    1.13      bloblist_t *last = NULL;