diff options
author | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-08-10 19:29:00 +0000 |
---|---|---|
committer | james <james@e7ae566f-a301-0410-adde-c780ea21d3b5> | 2008-08-10 19:29:00 +0000 |
commit | 6383b362039f1dffe380903f571c275576cb38d3 (patch) | |
tree | d797b46f9bb6cac6e994e057e8f28aca460d10e6 /ntlm.c | |
parent | Tagged security fix in 2.1-rc9 as CVE-2008-3459. (diff) | |
download | openvpn-6383b362039f1dffe380903f571c275576cb38d3.tar.xz |
Fixed build issue with ./configure --disable-socks --disable-http.
Fixed separate compile errors in options.c and ntlm.c that occur
on strict C compilers (such as old versions of gcc) that require
that C variable declarations occur at the start of a {} block,
not in the middle.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3219 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r-- | ntlm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -256,7 +256,8 @@ ntlm_phase_3 (const struct http_proxy_info *p, const char *phase_2, struct gc_ar } if (ntlmv2_enabled){ /* Generate NTLMv2 response */ - + int tib_len; + /* NTLMv2 hash */ my_strupr((unsigned char *)strcpy(userdomain, username)); if (strlen(username) + strlen(domain) < sizeof(userdomain)) @@ -276,7 +277,6 @@ ntlm_phase_3 (const struct http_proxy_info *p, const char *phase_2, struct gc_ar ntlmv2_blob[0x18]=0; /* Unknown, zero should work */ /* Add target information block to the blob */ - int tib_len; if (( *((long *)&buf2[0x14]) & 0x00800000) == 0x00800000){ /* Check for Target Information block */ tib_len = buf2[0x28];/* Get Target Information block size */ if (tib_len > 96) tib_len = 96; |