Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source4/libcli/raw/rawnotify.c

    r414 r745  
    7272        parms->nttrans.out.changes = NULL;
    7373        parms->nttrans.out.num_changes = 0;
    74        
     74
    7575        /* count them */
    7676        for (ofs=0; nt.out.params.length - ofs > 12; ) {
    7777                uint32_t next = IVAL(nt.out.params.data, ofs);
     78                if (next % 4 != 0)
     79                        return NT_STATUS_INVALID_NETWORK_RESPONSE;
    7880                parms->nttrans.out.num_changes++;
    7981                if (next == 0 ||
     
    156158         * but we want to keep it under oldreq->ntcancel
    157159         */
    158         if (!talloc_reference(oldreq, req)) {
    159                 talloc_free(req);
    160                 return NT_STATUS_NO_MEMORY;
    161         }
     160        req->do_not_free = true;
     161        talloc_steal(oldreq, req);
    162162
    163163        smbcli_request_send(req);
Note: See TracChangeset for help on using the changeset viewer.