]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixed minor compile issue in ntlm.c (mid-block declaration).
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 11 Aug 2008 13:12:34 +0000 (13:12 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Mon, 11 Aug 2008 13:12:34 +0000 (13:12 +0000)
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3222 e7ae566f-a301-0410-adde-c780ea21d3b5

ntlm.c

diff --git a/ntlm.c b/ntlm.c
index 62fe43c60494170550da94f1d299738559b305fe..1db4cc0ea87d576f96d728cf45bed92c8591b079 100644 (file)
--- a/ntlm.c
+++ b/ntlm.c
@@ -280,8 +280,10 @@ ntlm_phase_3 (const struct http_proxy_info *p, const char *phase_2, struct gc_ar
                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;
-                       char *tib_ptr = buf2 + buf2[0x2c]; /* Get Target Information block pointer */
-                       memcpy(&ntlmv2_blob[0x1c], tib_ptr, tib_len); /* Copy Target Information block into the blob */
+                       {
+                         char *tib_ptr = buf2 + buf2[0x2c]; /* Get Target Information block pointer */
+                         memcpy(&ntlmv2_blob[0x1c], tib_ptr, tib_len); /* Copy Target Information block into the blob */
+                       }
                } else {
                        tib_len = 0;
                }