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)