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:
83ef642
)
Set variable to NULL to prevent double free.
author
Armin Novak
<armin.novak@thincast.com>
Mon, 7 Mar 2016 12:12:38 +0000
(13:12 +0100)
committer
Armin Novak
<armin.novak@thincast.com>
Mon, 7 Mar 2016 12:12:38 +0000
(13:12 +0100)
client/common/cmdline.c
patch
|
blob
|
history
diff --git
a/client/common/cmdline.c
b/client/common/cmdline.c
index
6092947
..
9ffa059
100644
(file)
--- a/
client/common/cmdline.c
+++ b/
client/common/cmdline.c
@@
-1475,6
+1475,8
@@
int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings,
CommandLineSwitchCase(arg, "v")
{
free (settings->ServerHostname);
+ settings->ServerHostname = NULL;
+
p = strchr(arg->Value, '[');
/* ipv4 */
if (!p)