Skip to content

Commit

Permalink
Post fix for CONC-588
Browse files Browse the repository at this point in the history
Instead to allocate procy header string the poiter was assigned
to extended options.
  • Loading branch information
9EOR9 committed Apr 29, 2022
1 parent f33017c commit f75a819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmariadb/mariadb_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -3252,7 +3252,7 @@ mysql_optionsv(MYSQL *mysql,enum mysql_option option, ...)
case MARIADB_OPT_PROXY_HEADER:
{
size_t arg2 = va_arg(ap, size_t);
OPT_SET_EXTENDED_VALUE(&mysql->options, proxy_header, (char *)arg1);
OPT_SET_EXTENDED_VALUE_STR(&mysql->options, proxy_header, (char *)arg1);
OPT_SET_EXTENDED_VALUE(&mysql->options, proxy_header_len, arg2);
}
break;
Expand Down

0 comments on commit f75a819

Please sign in to comment.