artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a267b92
)
immediatly close the connection if the cert is not valid, rather than
author
eric
<eric@openbsd.org>
Tue, 10 Sep 2019 12:08:26 +0000
(12:08 +0000)
committer
eric
<eric@openbsd.org>
Tue, 10 Sep 2019 12:08:26 +0000
(12:08 +0000)
ending the smtp session.
ok gilles@
usr.sbin/smtpd/smtp_client.c
patch
|
blob
|
history
diff --git
a/usr.sbin/smtpd/smtp_client.c
b/usr.sbin/smtpd/smtp_client.c
index
7a26e95
..
22e7989
100644
(file)
--- a/
usr.sbin/smtpd/smtp_client.c
+++ b/
usr.sbin/smtpd/smtp_client.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: smtp_client.c,v 1.1
1 2019/09/02 20:05:21
eric Exp $ */
+/* $OpenBSD: smtp_client.c,v 1.1
2 2019/09/10 12:08:26
eric Exp $ */
/*
* Copyright (c) 2018 Eric Faurot <eric@openbsd.org>
@@
-168,7
+168,7
@@
smtp_cert_verified(struct smtp_client *proto, int verified)
else if (proto->params.tls_verify) {
errno = EAUTH;
- smtp_client_
cancel
(proto, FAIL_CONN,
+ smtp_client_
abort
(proto, FAIL_CONN,
"Invalid server certificate");
return;
}