update generated src code keysync
authorRoker <roker@pep-project.org>
Tue, 27 Sep 2016 21:35:00 +0200
branchkeysync
changeset 12009ac40687484e
parent 1199 6ca94fa73ff3
child 1201 571f488333be
update generated src code
src/sync_fsm.h
src/sync_send_actions.c
     1.1 --- a/src/sync_fsm.h	Tue Sep 27 14:20:25 2016 +0200
     1.2 +++ b/src/sync_fsm.h	Tue Sep 27 21:35:00 2016 +0200
     1.3 @@ -86,14 +86,6 @@
     1.4          stringlist_t *keylist
     1.5      );
     1.6  
     1.7 -// event injector
     1.8 -
     1.9 -PEP_STATUS inject_DeviceState_event(
    1.10 -    PEP_SESSION session, 
    1.11 -    DeviceState_event event,
    1.12 -    Identity partner,
    1.13 -    void *extra);
    1.14 -
    1.15  // state machine
    1.16  
    1.17  DeviceState_state fsm_DeviceState(
     2.1 --- a/src/sync_send_actions.c	Tue Sep 27 14:20:25 2016 +0200
     2.2 +++ b/src/sync_send_actions.c	Tue Sep 27 21:35:00 2016 +0200
     2.3 @@ -19,7 +19,7 @@
     2.4  //  params:
     2.5  //      session (in)        session handle
     2.6  //      state (in)          state the state machine is in
     2.7 -//      partner (in)        partner to communicate with
     2.8 +//      partner (in)        (must be NULL)
     2.9  //
    2.10  //  returns:
    2.11  //      PEP_STATUS_OK or any other value on error
    2.12 @@ -47,11 +47,13 @@
    2.13          goto error;
    2.14  
    2.15      free_DeviceGroup_Protocol_msg(msg);
    2.16 +    free_identity(partner);
    2.17      return PEP_STATUS_OK;
    2.18  
    2.19  enomem:
    2.20      status = PEP_OUT_OF_MEMORY;
    2.21  error:
    2.22 +    free_identity(partner);
    2.23      free_DeviceGroup_Protocol_msg(msg);
    2.24      return status;
    2.25  }
    2.26 @@ -90,11 +92,13 @@
    2.27          goto error;
    2.28  
    2.29      free_DeviceGroup_Protocol_msg(msg);
    2.30 +    free_identity(partner);
    2.31      return PEP_STATUS_OK;
    2.32  
    2.33  enomem:
    2.34      status = PEP_OUT_OF_MEMORY;
    2.35  error:
    2.36 +    free_identity(partner);
    2.37      free_DeviceGroup_Protocol_msg(msg);
    2.38      return status;
    2.39  }
    2.40 @@ -141,11 +145,13 @@
    2.41  
    2.42      free_identity_list(kl);
    2.43      free_DeviceGroup_Protocol_msg(msg);
    2.44 +    free_identity(partner);
    2.45      return PEP_STATUS_OK;
    2.46  
    2.47  enomem:
    2.48      status = PEP_OUT_OF_MEMORY;
    2.49  error:
    2.50 +    free_identity(partner);
    2.51      free_DeviceGroup_Protocol_msg(msg);
    2.52      free_identity_list(kl);
    2.53      return status;