Follow us on Google+ Follow us on Facebook Follow us on Twitter

Changeset mainline,634.1.96


Ignore:
Timestamp:
2010-10-24T22:12:21Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
branch-nick:
HelenOS.networking
revision id:
jakub@jermar.eu-20101024221221-e6oal703y9ojipqz
Message:

Do not use size before it is initialized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mainline/uspace/lib/packet/generic/packet_server.c

    r4.1.95 r4.1.96  
    318318                return EINVAL;
    319319
    320         if (size != packet->length)
    321                 return ENOMEM;
    322 
    323320        if (!async_share_in_receive(&callid, &size)) {
    324321                ipc_answer_0(callid, EINVAL);
    325322                return EINVAL;
     323        }
     324
     325        if (size != packet->length) {
     326                ipc_answer_0(callid, ENOMEM);
     327                return ENOMEM;
    326328        }
    327329       
Note: See TracChangeset for help on using the changeset viewer.