From 71d407d6418bb38a5fe1fce03706412bd7f130c8 Mon Sep 17 00:00:00 2001 From: van Hauser Date: Thu, 4 Jan 2018 10:53:24 +0100 Subject: [PATCH] fix --- hydra-oracle.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hydra-oracle.c b/hydra-oracle.c index 1adefba..e598401 100644 --- a/hydra-oracle.c +++ b/hydra-oracle.c @@ -83,9 +83,7 @@ int32_t start_oracle(int32_t s, char *ip, int32_t port, unsigned char options, c return 4; } - // deprecated: if (OCILogon(o_environment, o_error, &o_servicecontext, (const OraText *) login, strlen(login), (const OraText *) pass, strlen(pass), (const OraText *) buffer, strlen(buffer))) { - if (oci_connect(login, pass, connect - o_environment, o_error, &o_servicecontext, (const OraText *) login, strlen(login), (const OraText *) pass, strlen(pass), (const OraText *) buffer, strlen(buffer))) { + if (OCILogon(o_environment, o_error, &o_servicecontext, (const OraText *) login, strlen(login), (const OraText *) pass, strlen(pass), (const OraText *) buffer, strlen(buffer))) { OCIErrorGet(o_error, 1, NULL, &o_errorcode, o_errormsg, sizeof(o_errormsg), OCI_HTYPE_ERROR); //database: oracle_error: ORA-01017: invalid username/password; logon denied //database: oracle_error: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor