X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Ftlsproxy.c;fp=src%2Ftlsproxy.c;h=ee65febba68ef14445effc63d32851660b3cadef;hb=3eebfbd0b124c034d57e9ddba051e82fe99ba05f;hp=b391b738e641d1314db5c8289fefa62e694379a9;hpb=1d65b2374b94b6191d7c3ca53632c9ea416b2b7b;p=tlsproxy%2Ftlsproxy.git diff --git a/src/tlsproxy.c b/src/tlsproxy.c index b391b73..ee65feb 100644 --- a/src/tlsproxy.c +++ b/src/tlsproxy.c @@ -237,7 +237,7 @@ int main(int argc, char **argv) { free(global_proxy_host); free(global_proxy_port); - free(http_digest_authorization); + free(global_http_digest_authorization); return EXIT_FAILURE; } @@ -265,20 +265,20 @@ static void parse_arguments(int argc, char **argv) { while ((option = getopt(argc, argv, "a:d:p:t:uh?")) != -1) { switch (option) { case 'a': { - http_digest_authorization = slurp_text_file(optarg); - if (http_digest_authorization == NULL) { + global_http_digest_authorization = slurp_text_file(optarg); + if (global_http_digest_authorization == NULL) { fprintf(stderr, "failed to open authorization file '%s': ", optarg); perror(""); exit(EXIT_FAILURE); - } else if (strlen(http_digest_authorization) == 0) { + } else if (strlen(global_http_digest_authorization) == 0) { fprintf(stderr, "empty authorization file '%s'\n", optarg); exit(EXIT_FAILURE); } /* Just in case the file has a trailing newline. */ - strtok(http_digest_authorization, "\r\n"); + strtok(global_http_digest_authorization, "\r\n"); break; }