requestNewAuthToken will clear token if it fails

This commit is contained in:
Bill Williams
2019-05-14 11:51:40 -07:00
parent 65098e36cb
commit 60789f0ec8
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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)