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:
2d84387
)
Fixed bug with assistance buffer parsing: `freerdp_assistance_parse_file_buffer`...
author
odednoam
<oded@no.am>
Thu, 5 Nov 2020 10:58:47 +0000
(12:58 +0200)
committer
akallabeth
<akallabeth@users.noreply.github.com>
Thu, 25 Feb 2021 08:51:41 +0000
(09:51 +0100)
(cherry picked from commit
0dc9b18cdea8dce172fdc34be067b07a846594d0
)
libfreerdp/common/assistance.c
patch
|
blob
|
history
diff --git
a/libfreerdp/common/assistance.c
b/libfreerdp/common/assistance.c
index
508a80b
..
925c272
100644
(file)
--- a/
libfreerdp/common/assistance.c
+++ b/
libfreerdp/common/assistance.c
@@
-790,6
+790,9
@@
int freerdp_assistance_parse_file_buffer(rdpAssistanceFile* file, const char* bu
char* r;
int status;
size_t length;
+
+ file->password = _strdup(password);
+
p = strstr(buffer, "UPLOADINFO");
if (p)
@@
-1174,7
+1177,6
@@
int freerdp_assistance_parse_file(rdpAssistanceFile* file, const char* name, con
free(file->filename);
free(file->password);
file->filename = _strdup(name);
- file->password = _strdup(password);
fp = fopen(name, "r");
if (!fp)