[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 6/7] dh: Print hexadecimal data to stderr


* src/dh.c (ssh_print_hexa): Print to stderr.

Signed-off-by: Justus Winter <justus@xxxxxxxxxxx>
---
 src/dh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dh.c b/src/dh.c
index 0c57d76..98607b9 100644
--- a/src/dh.c
+++ b/src/dh.c
@@ -1126,7 +1126,7 @@ void ssh_print_hexa(const char *descr, const unsigned char *what, size_t len) {
     if (hexa == NULL) {
       return;
     }
-    printf("%s: %s\n", descr, hexa);
+    fprintf(stderr, "%s: %s\n", descr, hexa);
 
     free(hexa);
 }
-- 
2.1.4


References:
[PATCH 1/5] options: Check if a port has been givenJustus Winter <justus@xxxxxxxxxxx>
[PATCH 1/7] options: Check if a port has been givenJustus Winter <justus@xxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org