Ignore:
Timestamp:
May 26, 2009, 9:44:50 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/libsmb/clirap2.c

    r133 r228  
    18571857        char upperbuf[MAX(RAP_USERNAME_LEN,RAP_MACHNAME_LEN)];
    18581858        int res = -1;
     1859        char *tmp = NULL;
    18591860
    18601861        memset(param, 0, sizeof(param));
     
    18671868        strlcpy(upperbuf, user, sizeof(upperbuf));
    18681869        strupper_m(upperbuf);
    1869         PUTSTRINGF(p, upperbuf, RAP_USERNAME_LEN);
     1870        tmp = upperbuf;
     1871        PUTSTRINGF(p, tmp, RAP_USERNAME_LEN);
    18701872        p++; /* strange format, but ok */
    18711873        strlcpy(upperbuf, workstation, sizeof(upperbuf));
    18721874        strupper_m(upperbuf);
    1873         PUTSTRINGF(p, upperbuf, RAP_MACHNAME_LEN);
     1875        tmp = upperbuf;
     1876        PUTSTRINGF(p, tmp, RAP_MACHNAME_LEN);
    18741877        PUTWORD(p, CLI_BUFFER_SIZE);
    18751878        PUTWORD(p, CLI_BUFFER_SIZE);
Note: See TracChangeset for help on using the changeset viewer.