Changeset ae004bc in mainline


Ignore:
Timestamp:
2019-11-15T18:45:24Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
34e91bf
Parents:
7ffdcbd
Message:

correcting create_session() calls

When creating a new session for a phone the interface
still needs to be assigned. If create_session() fails
then the old code would cause an assignment to NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async/client.c

    r7ffdcbd rae004bc  
    857857        if (sess == NULL) {
    858858                ipc_hangup(phone);
    859         }
    860         sess->iface = iface;
     859        }else {
     860                sess->iface = iface;
     861        }
    861862
    862863        return sess;
     
    914915        if (sess == NULL) {
    915916                ipc_hangup(phone);
    916         }
    917         sess->iface = iface;
     917        }else {
     918                sess->iface = iface;
     919        }
    918920
    919921        return sess;
Note: See TracChangeset for help on using the changeset viewer.