committed, thanks!
-aaron
On Thursday, February 6, 2003, at 07:45 PM, [EMAIL PROTECTED] wrote:
Summary: Fixed assign_profile_event_handler() to handle nonexistent names.
This patch fixes a null dereference when you specify a profile event handler that does not exist in the profile_event_handlers[] table. Below is the smallest test case I was able to generate to trigger the crash. Note that the entry for "profile_init" is "XXX".
<flood> <profile> <name>profile</name> <profile_init>XXX</profile_init> </profile> <farmer> <name>farmer</name> <useprofile>profile</useprofile> </farmer> <farm> <name>Bingo</name> <usefarmer>farmer</usefarmer> </farm> </flood>
With this patch, flood generates the following message:
Invalid implementation (XXX) for this handler (profile_init)
Error running farmer 'farmer': This function has not been implemented on this platform.