diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-04-23 15:12:35 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-04-23 15:12:35 +0200 |
commit | 53d491c9a4011a7d9ad69db52fb91d163f3f990a (patch) | |
tree | 9d0ed3130f35142da50c2e20e8addfe8909f459f /source3/nmbd/nmbd_packets.c | |
parent | af6298a84dffb400551861c6dc34591f1473830c (diff) | |
parent | 1722859abd169f2949b5822f97c810f2b8d162da (diff) | |
download | samba-53d491c9a4011a7d9ad69db52fb91d163f3f990a.tar.gz samba-53d491c9a4011a7d9ad69db52fb91d163f3f990a.tar.bz2 samba-53d491c9a4011a7d9ad69db52fb91d163f3f990a.zip |
Merge branch 'master' of ssh://git.samba.org/data/git/samba into abartlet-devel
Diffstat (limited to 'source3/nmbd/nmbd_packets.c')
-rw-r--r-- | source3/nmbd/nmbd_packets.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c index f69845b346..4045184f33 100644 --- a/source3/nmbd/nmbd_packets.c +++ b/source3/nmbd/nmbd_packets.c @@ -1936,7 +1936,9 @@ bool send_mailslot(bool unique, const char *mailslot,char *buf, size_t len, DEBUG(0, ("send_mailslot: Cannot write beyond end of packet\n")); return False; } else { - memcpy(p2,buf,len); + if (len) { + memcpy(p2,buf,len); + } p2 += len; } |