Fix to Coverity issue 85210.

This commit is contained in:
VilhoRaatikka
2014-12-31 16:29:07 +02:00
parent 316093f912
commit 51ebfb9862
2 changed files with 2 additions and 6 deletions

View File

@ -364,8 +364,8 @@ char *remote, *userName;
LOGIF(LE, (skygw_log_write_flush(LOGFILE_ERROR, LOGIF(LE, (skygw_log_write_flush(LOGFILE_ERROR,
"Error : %s: Recursive use of tee filter in service.", "Error : %s: Recursive use of tee filter in service.",
session->service->name))); session->service->name)));
my_session = NULL; my_session = NULL;
goto retblock; goto retblock;
} }
if ((my_session = calloc(1, sizeof(TEE_SESSION))) != NULL) if ((my_session = calloc(1, sizeof(TEE_SESSION))) != NULL)

View File

@ -523,10 +523,6 @@ static int gw_mysql_do_authentication(DCB *dcb, GWBUF *queue) {
if (auth_ret == 0) { if (auth_ret == 0) {
dcb->user = strdup(client_data->user); dcb->user = strdup(client_data->user);
} }
else
{
return 1;
}
/* let's free the auth_token now */ /* let's free the auth_token now */
if (auth_token) { if (auth_token) {