Ignore:
Timestamp:
Dec 11, 2007, 9:44:35 AM (18 years ago)
Author:
Paul Smedley
Message:

test fix for Ticket #9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/nmbd/nmbd_packets.c

    r102 r108  
    18931893        ptr -= 4; /* XXX Ugliness because of handling of tcp SMB length. */
    18941894        memcpy(tmp,ptr,4);
     1895
     1896        if (smb_size + 17*2 + strlen(mailslot) + 1 + len > MAX_DGRAM_SIZE) {
     1897                DEBUG(0, ("send_mailslot: Cannot write beyond end of packet\n"));
     1898                return False;
     1899        }
     1900
    18951901        set_message(ptr,17,strlen(mailslot) + 1 + len,True);
    18961902        memcpy(ptr,tmp,4);
Note: See TracChangeset for help on using the changeset viewer.