Skip to content

Commit

Permalink
This should never happen
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 26, 2014
1 parent a6b9cc0 commit 049bbf4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/modules/rlm_sql/sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,6 @@ sql_rcode_t rlm_sql_query(rlm_sql_handle_t **handle, rlm_sql_t *inst, char const
/* There's no handle, we need a new one */
if (!*handle) return RLM_SQL_RECONNECT;

/* There's a SQL handle but the connection handle has been invalidated */
if (!(*handle)->conn) goto sql_down;

/* For sanity, for when no connections are viable, and we can't make a new one */
for (i = fr_connection_get_num(inst->pool); i >= 0; i--) {
DEBUG("rlm_sql (%s): Executing query: '%s'", inst->config->xlat_name, query);
Expand Down Expand Up @@ -443,9 +440,6 @@ sql_rcode_t rlm_sql_select_query(rlm_sql_handle_t **handle, rlm_sql_t *inst, cha
/* There's no handle, we need a new one */
if (!*handle) return RLM_SQL_RECONNECT;

/* There's a SQL handle but the connection handle has been invalidated */
if (!(*handle)->conn) goto sql_down;

/* For sanity, for when no connections are viable, and we can't make a new one */
for (i = fr_connection_get_num(inst->pool); i >= 0; i--) {
DEBUG("rlm_sql (%s): Executing query: '%s'", inst->config->xlat_name, query);
Expand Down

0 comments on commit 049bbf4

Please sign in to comment.