]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
ntlm: unwrap multiple function calls
authorAntonio Quartulli <a@unstable.cc>
Wed, 12 Jul 2017 04:30:02 +0000 (12:30 +0800)
committerGert Doering <gert@greenie.muc.de>
Mon, 17 Jul 2017 12:20:12 +0000 (14:20 +0200)
In order to improve code readability it is better to unwrap
multiple function calls onto multiple lines.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20170712043002.11083-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15041.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit ad7f7e56d34bbf477a7e5639f1b78b2c7e58186c)

src/openvpn/ntlm.c

index 90d4875472faeadca7392f3f2a16eb59c907d220..976142ddbe7116592c2fc9d69583fe78dd26ff94 100644 (file)
@@ -271,7 +271,8 @@ ntlm_phase_3(const struct http_proxy_info *p, const char *phase_2, struct gc_are
         int tib_len;
 
         /* NTLMv2 hash */
-        my_strupr(strcpy(userdomain, username));
+        strcpy(userdomain, username);
+        my_strupr(userdomain);
         if (strlen(username) + strlen(domain) < sizeof(userdomain))
         {
             strcat(userdomain, domain);