Module Name: src
Committed By: agc
Date: Wed Oct 6 09:57:48 UTC 2010
Modified Files:
src/crypto/external/bsd/netpgp/dist/src/hkpclient: hkpc.c
Log Message:
fix an off-by-one error when printing the key from the server when retrieving
with the "get" command.
fix up an erroneous error message
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/crypto/external/bsd/netpgp/dist/src/hkpclient/hkpc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/external/bsd/netpgp/dist/src/hkpclient/hkpc.c
diff -u src/crypto/external/bsd/netpgp/dist/src/hkpclient/hkpc.c:1.1 src/crypto/external/bsd/netpgp/dist/src/hkpclient/hkpc.c:1.2
--- src/crypto/external/bsd/netpgp/dist/src/hkpclient/hkpc.c:1.1 Thu Sep 2 05:58:01 2010
+++ src/crypto/external/bsd/netpgp/dist/src/hkpclient/hkpc.c Wed Oct 6 09:57:48 2010
@@ -74,7 +74,7 @@
}
freeaddrinfo(res);
if (rc < 0) {
- (void) fprintf(stderr, "bind() to %s:%d failed (rc %d)\n",
+ (void) fprintf(stderr, "connect() to %s:%d failed (rc %d)\n",
hostname, port, rc);
}
return sock;
@@ -128,7 +128,7 @@
if (strcmp(op, "index") == 0 || strcmp(op, "vindex") == 0) {
ret = netpgp_format_json(fp, &res[(int)matches[0].rm_eo], 1);
} else {
- (void) fprintf(fp, "%s\n", &res[(int)matches[0].rm_eo + 1]);
+ (void) fprintf(fp, "%s\n", &res[(int)matches[0].rm_eo]);
ret = 1;
}
return ret;