src/sync_impl.c
changeset 1567 7e51ef02ab31
parent 1527 75d56a822caa
child 1568 4af26e1915f1
     1.1 --- a/src/sync_impl.c	Tue Jan 31 12:06:33 2017 +0100
     1.2 +++ b/src/sync_impl.c	Tue Jan 31 16:10:48 2017 +0100
     1.3 @@ -124,8 +124,9 @@
     1.4          default:
     1.5              break;
     1.6      }
     1.7 -    time_t now = time(NULL);
     1.8 +
     1.9      if(last != NULL){
    1.10 +        time_t now = time(NULL);
    1.11          if(*last != 0 && (*last + SYNC_INHIBIT_TIME) > now ){
    1.12              free_identity(partner);
    1.13              status = PEP_STATEMACHINE_INHIBITED_EVENT;