Changeset 587 for vendor/current/source3/libsmb/cliconnect.c
- Timestamp:
- Jun 29, 2011, 7:36:41 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/libsmb/cliconnect.c
r478 r587 1008 1008 * negprot reply, but right now we do it. If we don't receive one, 1009 1009 * 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) { 1011 1012 data_blob_free(&blob); 1012 1013 return ADS_ERROR_NT(NT_STATUS_INVALID_PARAMETER); … … 1873 1874 char *p; 1874 1875 int len = 4; 1876 int namelen = 0; 1875 1877 char *tmp; 1876 1878 … … 1891 1893 1892 1894 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 } 1895 1900 TALLOC_FREE(tmp); 1896 1901 … … 1904 1909 1905 1910 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 } 1908 1916 TALLOC_FREE(tmp); 1909 1917
Note:
See TracChangeset
for help on using the changeset viewer.