projects
/
platform
/
upstream
/
freerdp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96616bb
)
bugfix: segfault when calling an event which is not implemented by filter
author
kubistika
<kmizrachi18@gmail.com>
Sun, 12 May 2019 11:02:50 +0000
(14:02 +0300)
committer
kubistika
<kmizrachi18@gmail.com>
Sun, 26 May 2019 07:48:10 +0000
(10:48 +0300)
server/proxy/pf_filters.c
patch
|
blob
|
history
diff --git
a/server/proxy/pf_filters.c
b/server/proxy/pf_filters.c
index
171cb4a
..
92d53d2
100644
(file)
--- a/
server/proxy/pf_filters.c
+++ b/
server/proxy/pf_filters.c
@@
-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;
}