From: Aki Tuomi Date: Mon, 17 Jun 2013 19:11:44 +0000 (+0300) Subject: Fix wrong order of bind and string_to_cbuf X-Git-Tag: rec-3.6.0-rc1~649^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c15b4cad626a8ee3b089900fc055468accf1377;p=thirdparty%2Fpdns.git Fix wrong order of bind and string_to_cbuf --- diff --git a/modules/oraclebackend/oraclebackend.cc b/modules/oraclebackend/oraclebackend.cc index e107262243..feb59eb7f9 100644 --- a/modules/oraclebackend/oraclebackend.cc +++ b/modules/oraclebackend/oraclebackend.cc @@ -1335,8 +1335,8 @@ OracleBackend::getTSIGKey (const string& name, string* algorithm, string* conten OCIStmt *stmt; stmt = prepare_query(pooledSvcCtx, getTSIGKeyQuerySQL, getTSIGKeyQueryKey); - bind_str(stmt, ":name", mQueryName, sizeof(mQueryName)); string_to_cbuf(mQueryName, name, sizeof(mQueryName)); + bind_str(stmt, ":name", mQueryName, sizeof(mQueryName)); define_output_str(stmt, 1, &mResultTypeInd, mResultType, sizeof(mResultType)); define_output_str(stmt, 2, &mResultContentInd, mResultContent, sizeof(mResultContent));