Skip to content

Commit

Permalink
Alternative method to set fake DB conneciton handle
Browse files Browse the repository at this point in the history
May pacify Coverity...
  • Loading branch information
ndptech committed Nov 28, 2024
1 parent e2fcc56 commit 32bb264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/rlm_sql/drivers/rlm_sql_null/rlm_sql_null.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static void _sql_connection_close(UNUSED fr_event_list_t *el, UNUSED void *h, UN
CC_NO_UBSAN(function) /* UBSAN: false positive - public vs private connection_t trips --fsanitize=function */
static connection_state_t _sql_connection_init(void **h, UNUSED connection_t *conn, UNUSED void *uctx)
{
memcpy(*h, &fake, sizeof(h));
*h = UNCONST(void *, fake);
return CONNECTION_STATE_CONNECTED;
}

Expand Down

0 comments on commit 32bb264

Please sign in to comment.