Ignore:
Timestamp:
Nov 26, 2007, 9:24:27 AM (18 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.27a

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/smbd/srvstr.c

    r1 r105  
    2929                      const char *src, int dest_len, int flags)
    3030{
    31         size_t buf_used = PTR_DIFF(dest, base_ptr);
    32         if (dest_len == -1) {
    33                 if (((ptrdiff_t)dest < (ptrdiff_t)base_ptr) || (buf_used > (size_t)max_send)) {
    34 #if 0
    35                         DEBUG(0, ("Pushing string of 'unlimited' length into non-SMB buffer!\n"));
    36 #endif
    37                         return push_string_fn(function, line, base_ptr, dest, src, -1, flags);
    38                 }
    39                 return push_string_fn(function, line, base_ptr, dest, src, max_send - buf_used, flags);
     31        if (dest_len < 0) {
     32                return 0;
    4033        }
    41        
     34
    4235        /* 'normal' push into size-specified buffer */
    4336        return push_string_fn(function, line, base_ptr, dest, src, dest_len, flags);
Note: See TracChangeset for help on using the changeset viewer.