From 60789f0ec8f4658034e8fdf50f2df96b27c6d71b Mon Sep 17 00:00:00 2001 From: Bill Williams Date: Tue, 14 May 2019 11:51:40 -0700 Subject: [PATCH] requestNewAuthToken will clear token if it fails --- CHANGELOG.md | 1 + src/auth_token.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c0295c1..5bd2a9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Security: Mutual Authentication (mTLS or two way TLS) - Rename command line options for MTLS cert and Key - Update to use nanomsg v. 1.1.4 +- requestNewAuthToken will clear the token if it fails. ## [1.0.2] - 2019-02-08 - Refactored connection.c and updated corresponding unit tests diff --git a/src/auth_token.c b/src/auth_token.c index ce24df9..eca1cee 100644 --- a/src/auth_token.c +++ b/src/auth_token.c @@ -66,6 +66,7 @@ int requestNewAuthToken(char *newToken, size_t len, int r_count) struct token_data data; data.size = 0; + newToken[0] = '\0'; curl = curl_easy_init(); if(curl)