Loading lib/curl_sasl.c +7 −2 Original line number Diff line number Diff line Loading @@ -514,6 +514,7 @@ CURLcode Curl_sasl_create_xoauth2_message(struct SessionHandle *data, const char *bearer, char **outptr, size_t *outlen) { CURLcode result = CURLE_OK; char *xoauth; xoauth = aprintf("user=%s\1auth=Bearer %s\1\1", user, bearer); Loading @@ -522,8 +523,12 @@ CURLcode Curl_sasl_create_xoauth2_message(struct SessionHandle *data, return CURLE_OUT_OF_MEMORY; /* Base64 encode the reply */ return Curl_base64_encode(data, xoauth, strlen(xoauth), outptr, result = Curl_base64_encode(data, xoauth, strlen(xoauth), outptr, outlen); Curl_safefree(xoauth); return result; } /* Loading Loading
lib/curl_sasl.c +7 −2 Original line number Diff line number Diff line Loading @@ -514,6 +514,7 @@ CURLcode Curl_sasl_create_xoauth2_message(struct SessionHandle *data, const char *bearer, char **outptr, size_t *outlen) { CURLcode result = CURLE_OK; char *xoauth; xoauth = aprintf("user=%s\1auth=Bearer %s\1\1", user, bearer); Loading @@ -522,8 +523,12 @@ CURLcode Curl_sasl_create_xoauth2_message(struct SessionHandle *data, return CURLE_OUT_OF_MEMORY; /* Base64 encode the reply */ return Curl_base64_encode(data, xoauth, strlen(xoauth), outptr, result = Curl_base64_encode(data, xoauth, strlen(xoauth), outptr, outlen); Curl_safefree(xoauth); return result; } /* Loading