summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2018-05-05 21:45:56 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-05-05 22:18:01 +0200
commitc7e1f3f9c5fc00d5814a3f6ecf3850953e487a92 (patch)
treee593d97c0f171f37b454169de847a23096801637 /src
parent3c60d5dd47c62beae1971303364887e78cb1c33b (diff)
downloadgnutls-c7e1f3f9c5fc00d5814a3f6ecf3850953e487a92.tar.gz
gnutls-cli: corrected data written by server trace
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'src')
-rw-r--r--src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c
index bfdd78db89..363bd92c86 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -422,7 +422,7 @@ wrap_pull(gnutls_transport_ptr_t ptr, void *data, size_t len)
r = recv(hd->fd, data, len, 0);
if (r > 0 && hd->server_trace) {
- fwrite(data, 1, len, hd->server_trace);
+ fwrite(data, 1, r, hd->server_trace);
}
return r;
}