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: auth-3.3-rc2~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91a543ec8d24b29a1cdf1cb7743eca8716218b9d;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));