Ignore:
Timestamp:
Jul 1, 2011, 8:40:10 AM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update trunk to 3.5.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/libsmb/cliconnect.c

    r480 r590  
    10081008         * negprot reply, but right now we do it. If we don't receive one,
    10091009         * we try to best guess, then fall back to NTLM.  */
    1010         if (!spnego_parse_negTokenInit(blob, OIDs, &principal)) {
     1010        if (!spnego_parse_negTokenInit(blob, OIDs, &principal) ||
     1011                        OIDs[0] == NULL) {
    10111012                data_blob_free(&blob);
    10121013                return ADS_ERROR_NT(NT_STATUS_INVALID_PARAMETER);
     
    18731874        char *p;
    18741875        int len = 4;
     1876        int namelen = 0;
    18751877        char *tmp;
    18761878
     
    18911893
    18921894        p = cli->outbuf+len;
    1893         memcpy(p, tmp, name_len(tmp));
    1894         len += name_len(tmp);
     1895        namelen = name_len((unsigned char *)tmp, talloc_get_size(tmp));
     1896        if (namelen > 0) {
     1897                memcpy(p, tmp, namelen);
     1898                len += namelen;
     1899        }
    18951900        TALLOC_FREE(tmp);
    18961901
     
    19041909
    19051910        p = cli->outbuf+len;
    1906         memcpy(p, tmp, name_len(tmp));
    1907         len += name_len(tmp);
     1911        namelen = name_len((unsigned char *)tmp, talloc_get_size(tmp));
     1912        if (namelen > 0) {
     1913                memcpy(p, tmp, namelen);
     1914                len += namelen;
     1915        }
    19081916        TALLOC_FREE(tmp);
    19091917
Note: See TracChangeset for help on using the changeset viewer.