mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
bugfix: segfault when calling an event which is not implemented by filter
This commit is contained in:
@@ -181,11 +181,11 @@ BOOL pf_filters_register_new(filters_list* list, const char* module_path, const
|
||||
goto error;
|
||||
}
|
||||
|
||||
events = malloc(sizeof(proxyEvents));
|
||||
events = calloc(1, sizeof(proxyEvents));
|
||||
|
||||
if (events == NULL)
|
||||
{
|
||||
WLog_ERR(TAG, "pf_filters_register_new(): failed loading external module: %s", module_path);
|
||||
WLog_ERR(TAG, "pf_filters_register_new(): calloc proxyEvents failed");
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user