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:
9a33a82
)
Fixed use after free.
author
Armin Novak
<armin.novak@thincast.com>
Thu, 3 Oct 2019 14:15:52 +0000
(16:15 +0200)
committer
Armin Novak
<armin.novak@thincast.com>
Thu, 3 Oct 2019 14:15:52 +0000
(16:15 +0200)
client/X11/cli/xfreerdp.c
patch
|
blob
|
history
diff --git
a/client/X11/cli/xfreerdp.c
b/client/X11/cli/xfreerdp.c
index
a202a46
..
3492f43
100644
(file)
--- a/
client/X11/cli/xfreerdp.c
+++ b/
client/X11/cli/xfreerdp.c
@@
-61,11
+61,12
@@
int main(int argc, char* argv[])
if (status)
{
- if (settings->ListMonitors)
+ BOOL list = settings->ListMonitors;
+ if (list)
xf_list_monitors(xfc);
freerdp_client_context_free(context);
- if (
settings->ListMonitors
)
+ if (
list
)
return 0;
return status;
}