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/libsmb/clidgram.c

    r26 r108  
    7373        ptr -= 4; /* XXX Ugliness because of handling of tcp SMB length. */
    7474        memcpy(tmp,ptr,4);
     75
     76        if (smb_size + 17*2 + strlen(mailslot) + 1 + len > MAX_DGRAM_SIZE) {
     77                DEBUG(0, ("cli_send_mailslot: Cannot write beyond end of packet\n"));
     78                return False;
     79        }
     80
    7581        set_message(ptr,17,strlen(mailslot) + 1 + len,True);
    7682        memcpy(ptr,tmp,4);
Note: See TracChangeset for help on using the changeset viewer.