libcli/auth: fix shadowed declaration in netlogon_creds_crypt_samlogon_validation()
authorStefan Metzmacher <metze@samba.org>
Fri, 14 Jun 2013 07:47:50 +0000 (09:47 +0200)
committerAndreas Schneider <asn@samba.org>
Mon, 5 Aug 2013 08:30:01 +0000 (10:30 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
libcli/auth/credentials.c

index 5c8b25b7a4260ac185fc298d6d3c53e9171a70c2..2e9c87e8f62f4b07e7b42b92da394065bf011d8b 100644 (file)
@@ -490,7 +490,7 @@ NTSTATUS netlogon_creds_server_step_check(struct netlogon_creds_CredentialState
 static void netlogon_creds_crypt_samlogon_validation(struct netlogon_creds_CredentialState *creds,
                                                     uint16_t validation_level,
                                                     union netr_Validation *validation,
-                                                    bool encrypt)
+                                                    bool do_encrypt)
 {
        static const char zeros[16];
        struct netr_SamBaseInfo *base = NULL;
@@ -531,7 +531,7 @@ static void netlogon_creds_crypt_samlogon_validation(struct netlogon_creds_Crede
                /* Don't crypt an all-zero key, it would give away the NETLOGON pipe session key */
                if (memcmp(base->key.key, zeros,
                           sizeof(base->key.key)) != 0) {
-                       if (encrypt) {
+                       if (do_encrypt) {
                                netlogon_creds_aes_encrypt(creds,
                                            base->key.key,
                                            sizeof(base->key.key));
@@ -544,7 +544,7 @@ static void netlogon_creds_crypt_samlogon_validation(struct netlogon_creds_Crede
 
                if (memcmp(base->LMSessKey.key, zeros,
                           sizeof(base->LMSessKey.key)) != 0) {
-                       if (encrypt) {
+                       if (do_encrypt) {
                                netlogon_creds_aes_encrypt(creds,
                                            base->LMSessKey.key,
                                            sizeof(base->LMSessKey.key));
@@ -574,7 +574,7 @@ static void netlogon_creds_crypt_samlogon_validation(struct netlogon_creds_Crede
                /* Don't crypt an all-zero key, it would give away the NETLOGON pipe session key */
                if (memcmp(base->LMSessKey.key, zeros,
                           sizeof(base->LMSessKey.key)) != 0) {
-                       if (encrypt) {
+                       if (do_encrypt) {
                                netlogon_creds_des_encrypt_LMKey(creds,
                                                &base->LMSessKey);
                        } else {