]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Remove pair that didn't get populated
authorNick Porter <nick@portercomputing.co.uk>
Thu, 8 May 2025 07:20:25 +0000 (08:20 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 8 May 2025 07:22:48 +0000 (08:22 +0100)
src/modules/rlm_sql/rlm_sql.c

index a0cfdd6ca285f99026a4be76a612565300d72744..12e82042a25973079c2cf741c1a3d7c6a53240b2 100644 (file)
@@ -687,6 +687,7 @@ static int _sql_map_proc_get_value(TALLOC_CTX *ctx, fr_pair_list_t *out,
        if (fr_pair_value_from_str(vp, value, strlen(value), NULL, true) < 0) {
                RPEDEBUG("Failed parsing value \"%pV\" for attribute %s",
                         fr_box_strvalue_buffer(value), vp->da->name);
+               fr_pair_delete(out, vp);
                return -1;
        }