aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-10-09 12:21:51 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-10-09 12:21:51 +0200
commitc0db499f36439269c81c0d83fc4655502985bbc5 (patch)
tree6014c43afcec291ff11cbcea75320a8af5564cec /socket.c
parent858d08aeb74c6280ebcc29f6674084f345fdd425 (diff)
parent269cba9b00fa7ecb0d707ef5b6f10d34e049327c (diff)
downloadfetchmail-c0db499f36439269c81c0d83fc4655502985bbc5.tar.gz
fetchmail-c0db499f36439269c81c0d83fc4655502985bbc5.tar.bz2
fetchmail-c0db499f36439269c81c0d83fc4655502985bbc5.zip
Merge branch 'master' of gitorious.org:fetchmail/fetchmail
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/socket.c b/socket.c
index 2a3e1ba1..64b53b5e 100644
--- a/socket.c
+++ b/socket.c
@@ -687,20 +687,20 @@ static int SSL_verify_callback( int ok_return, X509_STORE_CTX *ctx, int strict )
for (j = 0, r = sk_GENERAL_NAME_num(gens); j < r; ++j) {
const GENERAL_NAME *gn = sk_GENERAL_NAME_value(gens, j);
if (gn->type == GEN_DNS) {
- char *p1 = (char *)gn->d.ia5->data;
- char *p2 = _ssl_server_cname;
+ char *pp1 = (char *)gn->d.ia5->data;
+ char *pp2 = _ssl_server_cname;
if (outlevel >= O_VERBOSE) {
- report(stdout, GT_("Subject Alternative Name: %s\n"), (tt = sdump(p1, (size_t)gn->d.ia5->length)));
+ report(stdout, GT_("Subject Alternative Name: %s\n"), (tt = sdump(pp1, (size_t)gn->d.ia5->length)));
xfree(tt);
}
/* Name contains embedded NUL characters, so we complain. This
* is likely a certificate spoofing attack. */
- if ((size_t)gn->d.ia5->length != strlen(p1)) {
+ if ((size_t)gn->d.ia5->length != strlen(pp1)) {
report(stderr, GT_("Bad certificate: Subject Alternative Name contains NUL, aborting!\n"));
sk_GENERAL_NAME_free(gens);
return 0;
}
- if (name_match(p1, p2)) {
+ if (name_match(pp1, pp2)) {
matched = 1;
}
}