Skip to content

Commit

Permalink
Fixed CORE-3202: execute_immediate API call family may crash the remo…
Browse files Browse the repository at this point in the history
…te server.
  • Loading branch information
dyemanov committed Oct 28, 2010
1 parent ed76079 commit 83a3f22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/remote/server.cpp
Expand Up @@ -1985,6 +1985,11 @@ ISC_STATUS rem_port::execute_immediate(P_OP op, P_SQLST * exnow, PACKET* sendL)
if (this->port_statement->rsr_bind_format)
{
in_msg_length = this->port_statement->rsr_bind_format->fmt_length;
if (!this->port_statement->rsr_message->msg_address)
{
this->port_statement->rsr_message->msg_address =
this->port_statement->rsr_message->msg_buffer;
}
in_msg = this->port_statement->rsr_message->msg_address;
}
out_blr_length = exnow->p_sqlst_out_blr.cstr_length;
Expand Down

0 comments on commit 83a3f22

Please sign in to comment.