Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
pkt_sum = buf[len - 1] | (buf[len - 2] << 8) |
(buf[len - 3] << 16) | (buf[len - 4] << 24);
- if (vpninfo->inflate_adler32 != pkt_sum) {
+ if (vpninfo->inflate_adler32 != pkt_sum)
vpninfo->quit_reason = "Compression (inflate) adler32 failure";
- }
vpn_progress(vpninfo, PRG_TRACE,
_("Received compressed data packet of %ld bytes\n"),
case OPT_COOKIE_ON_STDIN:
read_stdin(&vpninfo->cookie);
/* If the cookie is empty, ignore it */
- if (!*vpninfo->cookie) {
+ if (!*vpninfo->cookie)
vpninfo->cookie = NULL;
- }
break;
case OPT_PASSWORD_ON_STDIN:
read_stdin(&vpninfo->password);
} else {
t += vpninfo->cert_expire_warning;
i = X509_cmp_time(notAfter, &t);
- if (i < 0) {
+ if (i < 0)
reason = _("Client certificate expires soon at");
- }
}
if (reason) {
BIO *bp = BIO_new(BIO_s_mem());