diff common-kex.c @ 1402:553c6bb80265

fix DEBUG_* condition
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Nov 2016 10:47:18 +0100
parents 750ec4ec4cbe
children 798854f62430 06d52bcb8094
line wrap: on
line diff
--- a/common-kex.c	Sat Nov 19 10:38:47 2016 +0100
+++ b/common-kex.c	Sat Nov 19 10:47:18 2016 +0100
@@ -774,7 +774,7 @@
 	hash_desc->done(&hs, buf_getwriteptr(ses.hash, hash_desc->hashsize));
 	buf_setlen(ses.hash, hash_desc->hashsize);
 
-#if (DEBUG_KEXHASH) && (DEBUG_TRACE)
+#if defined(DEBUG_KEXHASH) && DEBUG_TRACE
 	if (!debug_trace) {
 		printhex("kexhashbuf", ses.kexhashbuf->data, ses.kexhashbuf->len);
 		printhex("kexhash", ses.hash->data, ses.hash->len);