]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
sqlippool_queries don't use SQL-User-Name attribute, so don't create it
authorNick Porter <nick@portercomputing.co.uk>
Mon, 22 Jan 2024 12:31:00 +0000 (12:31 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 26 Jan 2024 13:54:28 +0000 (13:54 +0000)
src/modules/rlm_sqlippool/rlm_sqlippool.c

index 18e09020c636a1b52bfcb978fefc186dd65cbb76..2e17de9b19998eab0159d0df86ae57a88fffd9fd 100644 (file)
@@ -372,10 +372,6 @@ static unlang_action_t CC_HINT(nonnull) mod_alloc(rlm_rcode_t *p_result, module_
 
        RESERVE_CONNECTION(handle, inst->sql->pool, request);
 
-       if (inst->sql->sql_set_user(inst->sql, request, NULL) < 0) {
-               RETURN_MODULE_FAIL;
-       }
-
        DO_PART(alloc_begin);
 
        /*
@@ -519,10 +515,6 @@ static unlang_action_t CC_HINT(nonnull) mod_update(rlm_rcode_t *p_result, module
 
        RESERVE_CONNECTION(handle, inst->sql->pool, request);
 
-       if (inst->sql->sql_set_user(inst->sql, request, NULL) < 0) {
-               RETURN_MODULE_FAIL;
-       }
-
        DO_PART(update_begin);
 
        /*
@@ -567,10 +559,6 @@ static unlang_action_t CC_HINT(nonnull) mod_release(rlm_rcode_t *p_result, modul
 
        RESERVE_CONNECTION(handle, inst->sql->pool, request);
 
-       if (inst->sql->sql_set_user(inst->sql, request, NULL) < 0) {
-               RETURN_MODULE_FAIL;
-       }
-
        DO_PART(release_begin);
        DO_PART(release_clear);
        DO_PART(release_commit);
@@ -593,10 +581,6 @@ static unlang_action_t CC_HINT(nonnull) mod_bulk_release(rlm_rcode_t *p_result,
 
        RESERVE_CONNECTION(handle, inst->sql->pool, request);
 
-       if (inst->sql->sql_set_user(inst->sql, request, NULL) < 0) {
-               RETURN_MODULE_FAIL;
-       }
-
        DO_PART(bulk_release_begin);
        DO_PART(bulk_release_clear);
        DO_PART(bulk_release_commit);
@@ -620,10 +604,6 @@ static unlang_action_t CC_HINT(nonnull) mod_mark(rlm_rcode_t *p_result, module_c
 
        RESERVE_CONNECTION(handle, inst->sql->pool, request);
 
-       if (inst->sql->sql_set_user(inst->sql, request, NULL) < 0) {
-               RETURN_MODULE_FAIL;
-       }
-
        DO_PART(mark_begin);
        DO_PART(mark_update);
        DO_PART(mark_commit);