Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 071a2c60 in mainline


Ignore:
Timestamp:
2014-07-17T09:55:41Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
5c2e8d0
Parents:
f303f2cf
Message:

Fix leaks in UDP error paths. Allow greater UDP message size. (thx Fan Jinfei)

Location:
uspace/srv/net/udp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/udp/assoc.c

    rf303f2cf r071a2c60  
    275275
    276276        rc = udp_transmit_pdu(pdu);
     277        udp_pdu_delete(pdu);
     278
    277279        if (rc != EOK)
    278280                return EIO;
    279 
    280         udp_pdu_delete(pdu);
    281281
    282282        return EOK;
     
    335335                /* XXX Generate ICMP error. */
    336336                /* XXX Might propagate error directly by error return. */
     337                udp_msg_delete(msg);
    337338                return;
    338339        }
  • uspace/srv/net/udp/udp_type.h

    rf303f2cf r071a2c60  
    4343#include <inet/addr.h>
    4444
    45 #define UDP_FRAGMENT_SIZE 4096
    46 
     45#define UDP_FRAGMENT_SIZE 65535
    4746
    4847typedef enum {
Note: See TracChangeset for help on using the changeset viewer.