VirtualBox

Changeset 22452 in vbox for trunk/src


Ignore:
Timestamp:
Aug 26, 2009 7:55:52 AM (15 years ago)
Author:
vboxsync
Message:

NAT/libalias: don't alloc to much

Location:
trunk/src/VBox/Devices/Network/slirp/libalias
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/libalias/alias_ftp.c

    r22451 r22452  
    169169    int error;
    170170#ifdef VBOX
    171     handlers = RTMemAllocZ(2 * sizeof(struct proto_handler));
     171    if (handlers == NULL)
     172        handlers = RTMemAllocZ(2 * sizeof(struct proto_handler));
    172173    handlers[0].pri = 80;
    173174    handlers[0].dir = OUT;
  • trunk/src/VBox/Devices/Network/slirp/libalias/alias_nbt.c

    r22451 r22452  
    188188    int error;
    189189#ifdef VBOX
    190     handlers = RTMemAllocZ(4 * sizeof(struct proto_handler));
     190    if (handlers == NULL)
     191        handlers = RTMemAllocZ(4 * sizeof(struct proto_handler));
    191192    handlers[0].pri = 130;
    192193    handlers[0].dir = IN|OUT;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette