projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77774e9
)
silcclient: fix packet stream coder function
author
Pekka Riikonen
<priikone@silcnet.org>
Mon, 28 Apr 2014 19:43:44 +0000
(22:43 +0300)
committer
Pekka Riikonen
<priikone@silcnet.org>
Mon, 28 Apr 2014 19:43:44 +0000
(22:43 +0300)
Generate correct FTP packet after, after the packet stream coder function
semantics changed in commit
705167687caeaa66c371dce7cc88719687337b9e
.
lib/silcclient/client_ftp.c
patch
|
blob
|
history
diff --git
a/lib/silcclient/client_ftp.c
b/lib/silcclient/client_ftp.c
index ac53a0c5ead3e1f2a3cda16a2f290962e0ced2d9..fc1aef48d8bdb37610dfef994b608fef81768a1e 100644
(file)
--- a/
lib/silcclient/client_ftp.c
+++ b/
lib/silcclient/client_ftp.c
@@
-498,6
+498,7
@@
silc_client_ftp_coder(SilcStream stream, SilcStreamStatus status,
/* Add FTP type before SFTP data */
if (status == SILC_STREAM_CAN_WRITE) {
+ silc_buffer_push(buffer, 1);
if (silc_buffer_format(buffer,
SILC_STR_UI_CHAR(1),
SILC_STR_END) < 0)
@@
-531,7
+532,7
@@
silc_client_ftp_connect_completion(SilcClient client,
/* Wrap the connection packet stream */
session->stream = silc_packet_stream_wrap(conn->stream, SILC_PACKET_FTP,
- 0, FALSE,
+ 0, FALSE,
0, NULL, 0, NULL,
silc_client_ftp_coder, session);
if (!session->stream) {
/* Call monitor callback */