Source-Changes-HG archive

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

[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/hkpclient don't try to p...



details:   https://anonhg.NetBSD.org/src/rev/a903b6a8a3a1
branches:  trunk
changeset: 757949:a903b6a8a3a1
user:      agc <agc%NetBSD.org@localhost>
date:      Wed Oct 06 09:58:22 2010 +0000

description:
don't try to print a key if an error occurred

diffstat:

 crypto/external/bsd/netpgp/dist/src/hkpclient/main.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r a270e1e66394 -r a903b6a8a3a1 crypto/external/bsd/netpgp/dist/src/hkpclient/main.c
--- a/crypto/external/bsd/netpgp/dist/src/hkpclient/main.c      Wed Oct 06 09:57:48 2010 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/hkpclient/main.c      Wed Oct 06 09:58:22 2010 +0000
@@ -61,7 +61,7 @@
                }
        }
        for (i = optind + 1 ; i < argc ; i++) {
-               if (hkpc_get(&res, server, port, family, argv[optind], argv[i])) {
+               if (hkpc_get(&res, server, port, family, argv[optind], argv[i]) >= 0) {
                        hkpc_print_key(stdout, argv[optind], res);
                }
        }



Home | Main Index | Thread Index | Old Index