ntlm_auth: Avoid some statics
authorVolker Lendecke <vl@samba.org>
Wed, 16 Nov 2016 15:22:46 +0000 (15:22 +0000)
committerJeremy Allison <jra@samba.org>
Sun, 20 Nov 2016 16:29:07 +0000 (17:29 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/utils/ntlm_auth.c

index 4f67b90324675d44025988c392b6944cd8c13cc9..9888dbc17917810828e3da2c678c7c199085efc8 100644 (file)
@@ -2255,12 +2255,12 @@ enum {
 {
        TALLOC_CTX *frame = talloc_stackframe();
        int opt;
-       static const char *helper_protocol;
-       static int diagnostics;
+       const char *helper_protocol = NULL;
+       int diagnostics = 0;
 
-       static const char *hex_challenge;
-       static const char *hex_lm_response;
-       static const char *hex_nt_response;
+       const char *hex_challenge = NULL;
+       const char *hex_lm_response = NULL;
+       const char *hex_nt_response = NULL;
        struct loadparm_context *lp_ctx;
        poptContext pc;