Commit ccd6fe78 authored by joerg@mysql.com's avatar joerg@mysql.com

after merge fixes

Originally contained in 2005/03/03 23:57:48+01:00 serg@serg.mylan;
contained in MySQL 4.1.10a;
re-committed for archival purposes.
parent 9db41fb0
...@@ -83,8 +83,8 @@ static char *init_syms(udf_func *tmp, char *nm) ...@@ -83,8 +83,8 @@ static char *init_syms(udf_func *tmp, char *nm)
{ {
char *end; char *end;
if (!((tmp->func= dlsym(tmp->dlhandle, tmp->name)))) if (!((tmp->func= dlsym(tmp->dlhandle, tmp->name.str))))
return tmp->name; return tmp->name.str;
end=strmov(nm,tmp->name.str); end=strmov(nm,tmp->name.str);
...@@ -193,17 +193,17 @@ void udf_init() ...@@ -193,17 +193,17 @@ void udf_init()
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(dl_name, '/') || strlen(name) > NAME_LEN) if (strchr(dl_name, '/') || name.length > NAME_LEN)
{ {
sql_print_error("Invalid row in mysql.func table for function '%.64s'", sql_print_error("Invalid row in mysql.func table for function '%.64s'",
name); name.str);
continue; continue;
} }
if (!(tmp = add_udf(&name,(Item_result) table->field[1]->val_int(), if (!(tmp = add_udf(&name,(Item_result) table->field[1]->val_int(),
dl_name, udftype))) dl_name, udftype)))
{ {
sql_print_error("Can't alloc memory for udf function: '%.64s'", name); sql_print_error("Can't alloc memory for udf function: '%.64s'", name.str);
continue; continue;
} }
...@@ -270,7 +270,7 @@ void udf_free() ...@@ -270,7 +270,7 @@ void udf_free()
{ {
initialized= 0; initialized= 0;
rwlock_destroy(&THR_LOCK_udf); rwlock_destroy(&THR_LOCK_udf);
} }
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
......
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