From 0669f272e905dbf1839f16e2342a9e1e69077ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 18 Jun 2014 13:07:20 +0200 Subject: [PATCH] Fix printing large packets in ssl_server2 --- programs/ssl/ssl_server2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 0dc516e1b..d617b3d9e 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -1506,7 +1506,8 @@ reset: larger_buf[ori_len + extra_len] = '\0'; printf( " %u bytes read (%u + %u)\n\n%s\n", - ori_len + extra_len, ori_len, extra_len, (char *) buf ); + ori_len + extra_len, ori_len, extra_len, + (char *) larger_buf ); polarssl_free( larger_buf ); }