src/transport.c
changeset 30 49f7cbcb91df
parent 29 31881fe94d3c
child 36 7857c4a83b5f
     1.1 --- a/src/transport.c	Tue Sep 09 13:00:10 2014 +0200
     1.2 +++ b/src/transport.c	Wed Sep 10 13:49:35 2014 +0200
     1.3 @@ -5,6 +5,8 @@
     1.4  
     1.5  PEP_STATUS init_transport_system(PEP_SESSION session)
     1.6  {
     1.7 +    assert(session);
     1.8 +
     1.9      pEpSession *_session = (pEpSession *) session;
    1.10      PEP_transport_t* transports = _session->transports;
    1.11  
    1.12 @@ -18,11 +20,14 @@
    1.13  
    1.14  void release_transport_system(PEP_SESSION session)
    1.15  {
    1.16 +    assert(session);
    1.17      // nothing yet
    1.18  }
    1.19  
    1.20  pEp_identity *identity_dup(const pEp_identity *src)
    1.21  {
    1.22 +    assert(src);
    1.23 +
    1.24      pEp_identity *dup = new_identity(src->address, src->fpr, src->user_id, src->username);
    1.25      assert(dup);
    1.26      if (dup == NULL)