Commit 59b5c9bf authored by lenz@mysql.com's avatar lenz@mysql.com

- backport of a compile fix from 4.1 (ChangeSet@1.2260.23.2 2005/05/19 from reggie)

  "changed dl_name to udf->dl in mysql_create_function"
parent 03b12897
...@@ -405,7 +405,7 @@ int mysql_create_function(THD *thd,udf_func *udf) ...@@ -405,7 +405,7 @@ int mysql_create_function(THD *thd,udf_func *udf)
This is done to ensure that only approved dll from the system This is done to ensure that only approved dll from the system
directories are used (to make this even remotely secure). directories are used (to make this even remotely secure).
*/ */
if (strchr(udf->dl, '/') || IF_WIN(strchr(dl_name, '\\'),0)) if (strchr(udf->dl, '/') || IF_WIN(strchr(udf->dl, '\\'),0))
{ {
send_error(&thd->net, ER_UDF_NO_PATHS,ER(ER_UDF_NO_PATHS)); send_error(&thd->net, ER_UDF_NO_PATHS,ER(ER_UDF_NO_PATHS));
DBUG_RETURN(1); DBUG_RETURN(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment