Ignore:
Timestamp:
Mar 11, 2009, 9:14:55 AM (16 years ago)
Author:
Paul Smedley
Message:

Add 'missing' 3.0.34 diffs

File:
1 edited

Legend:

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

    r134 r165  
    714714                                char **ppdata,
    715715                                struct junction_map *junction,
    716                                 int consumedcnt,
    717716                                BOOL self_referral)
    718717{
     
    771770
    772771        /* create the header */
    773         SSVAL(pdata,0,consumedcnt * 2); /* path consumed */
     772        SSVAL(pdata,0,requestedpathlen - 2); /* UCS2 of path consumed minus
     773
    774774        SSVAL(pdata,2,junction->referral_count); /* number of referral in this pkt */
    775775        if(self_referral) {
     
    815815                                char **ppdata,
    816816                                struct junction_map *junction,
    817                                 int consumedcnt,
    818817                                BOOL self_referral)
    819818{
     
    853852
    854853        /* create the header */
    855         SSVAL(pdata,0,consumedcnt * 2); /* path consumed */
     854        SSVAL(pdata,0,reqpathlen - 2); /* UCS2 of path consumed minus
     855                                          2 byte null */
     856
    856857        SSVAL(pdata,2,junction->referral_count); /* number of referral */
    857858        if(self_referral) {
     
    975976        case 2:
    976977                reply_size = setup_ver2_dfs_referral(pathnamep, ppdata, &junction,
    977                                                      consumedcnt, self_referral);
     978                                                     self_referral);
    978979                break;
    979980        case 3:
    980981                reply_size = setup_ver3_dfs_referral(pathnamep, ppdata, &junction,
    981                                                      consumedcnt, self_referral);
     982                                                     self_referral);
    982983                break;
    983984        default:
Note: See TracChangeset for help on using the changeset viewer.