Browse Source

security fix: failure to load the certificate file is *not* OK ...

wip/maildir-uid-dupes-test
Oswald Buddenhagen 14 years ago
parent
commit
3447694c2b
  1. 2
      src/socket.c

2
src/socket.c

@ -147,7 +147,7 @@ verify_cert( const server_conf_t *conf, Socket_t *sock )
if (!(fp = fopen( conf->cert_file, "rt" ))) { if (!(fp = fopen( conf->cert_file, "rt" ))) {
error( "Unable to load CertificateFile '%s': %s\n", error( "Unable to load CertificateFile '%s': %s\n",
conf->cert_file, strerror( errno ) ); conf->cert_file, strerror( errno ) );
return 0; return -1;
} }
err = -1; err = -1;
for (lcert = 0; READ_X509_KEY( fp, &lcert ); ) for (lcert = 0; READ_X509_KEY( fp, &lcert ); )

Loading…
Cancel
Save