Ignore:
Timestamp:
2011-10-07T21:42:14Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
80099c19
Parents:
00d7e1b
Message:

networking fixes

  • use sysarg_t for packet_id_t to avoid potential overflow
  • fix the confusion in the order of arguments for nil_received_msg(), this fixes the strange ping timeout on 127.0.0.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/generic/packet_remote.c

    r00d7e1b r49bd793b  
    115115       
    116116        *packet = pm_find(packet_id);
    117         if (!*packet) {
     117        if (*packet == NULL) {
    118118                async_exch_t *exch = async_exchange_begin(sess);
    119119                sysarg_t size;
     
    130130        }
    131131       
    132         if ((*packet)->next) {
     132        if ((*packet != NULL) && ((*packet)->next)) {
    133133                packet_t *next;
    134134                return packet_translate_remote(sess, &next, (*packet)->next);
Note: See TracChangeset for help on using the changeset viewer.