Changeset 7fb2ce3 in mainline for uspace/srv/net/modules.c


Ignore:
Timestamp:
2010-02-17T00:27:50Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f430f58
Parents:
61ee6df
Message:

Fix a couple of stack corruptions in networking code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/modules.c

    r61ee6df r7fb2ce3  
    5555
    5656int connect_to_service_timeout( services_t need, suseconds_t timeout ){
    57         int     phone;
    58         int     res;
     57        ipcarg_t phone;
     58        int res;
    5959
    6060        while( true ){
    61                 res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, ( ipcarg_t * ) & phone );
    62                 if(( res >= 0 ) && ( phone >= 0 )){
     61                res = async_req_3_5( PHONE_NS, IPC_M_CONNECT_ME_TO, need, 0, 0, NULL, NULL, NULL, NULL, & phone );
     62                if( res >= 0 ){
    6363                        return phone;
    6464                }
Note: See TracChangeset for help on using the changeset viewer.