Skip to content

Commit f430e15

Browse files
committed
fix: reduce scope of request_buffer
1 parent 3ecb845 commit f430e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cvmassistants/keyprovider/key-provider-agent/src/key_provider_agent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ char *generate_random_key(void) {
7070
int push_wrapkey_to_secret_box(const char *wrapkey) {
7171
CURL *curl;
7272
CURLcode res;
73-
char request_buffer[64];
7473
long http_code = 0;
7574

7675
curl = curl_easy_init();
7776
if (curl) {
77+
char request_buffer[64];
7878
// get token
7979
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "POST");
8080
curl_easy_setopt(curl, CURLOPT_URL, "http://127.0.0.1:9090/secret");

0 commit comments

Comments
 (0)