]>
Commit | Line | Data |
---|---|---|
2da448ae | 1 | Index: squid/helpers/ntlm_auth/SMB/libntlmssp.c |
2 | diff -c squid/helpers/ntlm_auth/SMB/libntlmssp.c:1.7.2.3 squid/helpers/ntlm_auth/SMB/libntlmssp.c:1.7.2.4 | |
3 | *** squid/helpers/ntlm_auth/SMB/libntlmssp.c:1.7.2.3 Sun Feb 20 12:07:44 2005 | |
4 | --- squid/helpers/ntlm_auth/SMB/libntlmssp.c Sun Dec 11 03:23:02 2005 | |
5 | *************** | |
6 | *** 178,191 **** | |
7 | --- 178,194 ---- | |
8 | char *p = credentials; | |
9 | lstring tmp; | |
10 | tmp = ntlm_fetch_string((char *) auth, auth_length, &auth->domain); | |
11 | + *p = '\0'; | |
12 | if (tmp.str == NULL) | |
13 | return NULL; | |
14 | memcpy(p, tmp.str, tmp.l); | |
15 | p += tmp.l; | |
16 | *p++ = '\\'; | |
17 | + *p = '\0'; | |
18 | tmp = ntlm_fetch_string((char *) auth, auth_length, &auth->user); | |
19 | if (tmp.str == NULL) | |
20 | return NULL; | |
21 | + memcpy(p, tmp.str, tmp.l); | |
22 | *(p + tmp.l) = '\0'; | |
23 | return credentials; | |
24 | } |