Skip to content

Commit

Permalink
Refactoring ISSUE Yubico#230
Browse files Browse the repository at this point in the history
  • Loading branch information
baimard committed Jul 28, 2021
1 parent fc2dc08 commit 231234b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions util.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,16 @@ check_user_token_mysql(const char *mysql_server,
int int_data;
int row_count;

if(mysql_library_init(0, NULL, NULL)){
if(mysql_library_init(0, NULL, NULL))
{
if(verbose)
D (debug_file, "could not initialize MySQL client library");
return retval;
}

con = mysql_init(con);
if(!con) {
if(!con)
{
if(verbose)
D (debug_file, "out of memorys");
return retval;
Expand Down Expand Up @@ -178,7 +180,9 @@ check_user_token_mysql(const char *mysql_server,
D (debug_file, "mysql_stmt_prepare() failed %s", mysql_stmt_error(stmt));
goto end_connection;
}
}else{
}
else
{
if(mysql_stmt_prepare(stmt, sql2, strlen(sql2)))
{
if(verbose)
Expand Down

0 comments on commit 231234b

Please sign in to comment.