Skip to content

Commit 7f83874

Browse files
committed
out_stackdriver: fix access token caching
This fixes the access token caching in the out_stackdriver plugin. Signed-off-by: Ridwan Sharif <[email protected]>
1 parent e24f28f commit 7f83874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/out_stackdriver/stackdriver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static void oauth2_cache_set(char *type, char *token, time_t expires)
103103
return;
104104
}
105105
*tmp_expires = expires;
106-
pthread_setspecific(oauth2_token, tmp_expires);
106+
pthread_setspecific(oauth2_token_expires, tmp_expires);
107107
}
108108

109109
/* By using pthread keys cached values, compose the authorizatoin token */

0 commit comments

Comments
 (0)