projects
/
trust_router.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d91a8f
)
Fix logic error in comparison.
author
Margaret Wasserman
<mrw@debian.(none)>
Wed, 9 Jan 2013 14:35:53 +0000
(09:35 -0500)
committer
Margaret Wasserman
<mrw@debian.(none)>
Wed, 9 Jan 2013 14:35:53 +0000
(09:35 -0500)
common/dh_test/dh_test.c
patch
|
blob
|
history
diff --git
a/common/dh_test/dh_test.c
b/common/dh_test/dh_test.c
index
4122669
..
ff3181f
100644
(file)
--- a/
common/dh_test/dh_test.c
+++ b/
common/dh_test/dh_test.c
@@
-80,9
+80,9
@@
int main (int argc,
exit(1);
}
- fprintf(std
err
, "Server DH Parameters:\n");
+ fprintf(std
out
, "Server DH Parameters:\n");
DHparams_print_fp(stdout, s_dh);
- fprintf(std
err
, "\n");
+ fprintf(std
out
, "\n");
/*** Would now send server's pub key to client ***/
@@
-111,7
+111,7
@@
int main (int argc,
}
/* Compare the two keys to see if they match */
- if ((c_keylen != s_keylen)
&&
+ if ((c_keylen != s_keylen)
||
(0 != memcmp(c_keybuf, s_keybuf, c_keylen))) {
printf("Error: Different keys generated!\n");
exit(1);