Skip to content

Commit d7eccbf

Browse files
committed
fix(network): token size when calling cloudsync_network_set_token before cloudsync_network_init, if the token was greater that 256 chars it was truncated
1 parent 94c0643 commit d7eccbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/network.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ bool network_compute_endpoints (sqlite3_context *context, network_data *data, co
541541
#endif
542542

543543
if (query != NULL) {
544-
char value[MAX_QUERY_VALUE_LEN];
544+
char value[CLOUDSYNC_SESSION_TOKEN_MAXSIZE];
545545
if (!authentication && network_extract_query_param(query, "apikey", value, sizeof(value)) == 0) {
546546
authentication = network_authentication_token("apikey", value);
547547
}

0 commit comments

Comments
 (0)