Skip to content

Commit

Permalink
Use typed_asprintf in sql_xlat
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Nov 14, 2017
1 parent e9665b1 commit 864516f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/rlm_sql/rlm_sql.c
Expand Up @@ -189,7 +189,7 @@ static ssize_t sql_xlat(UNUSED TALLOC_CTX *ctx, char **out, UNUSED size_t outlen
goto finish;
}

MEM(*out = talloc_asprintf(request, "%d", numaffected));
MEM(*out = talloc_typed_asprintf(request, "%d", numaffected));
ret = talloc_array_length(*out) - 1;

(inst->driver->sql_finish_query)(handle, inst->config);
Expand Down

0 comments on commit 864516f

Please sign in to comment.