Fix some hash debugging
diff --git a/library/ssl_cli.c b/library/ssl_cli.c
index 29e9316..a821a31 100644
--- a/library/ssl_cli.c
+++ b/library/ssl_cli.c
@@ -1453,7 +1453,8 @@
             md_free_ctx( &ctx );
         }
 
-        SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen );
+        SSL_DEBUG_BUF( 3, "parameters hash", hash, hashlen != 0 ? hashlen :
+                (unsigned int) ( md_info_from_type( md_alg ) )->size );
 
         /*
          * Verify signature