summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjacekm <jacekm@openbsd.org>2008-12-07 15:41:16 +0000
committerjacekm <jacekm@openbsd.org>2008-12-07 15:41:16 +0000
commit77c5b70906a51eef2e015c3f2665fa3bed3844c8 (patch)
tree815f1d6a77ccceb9033e25f42e2a4d5404adb5af
parentReplace evbuffer_add_printf calls with wrapper function, session_respond, (diff)
downloadwireguard-openbsd-77c5b70906a51eef2e015c3f2665fa3bed3844c8.tar.xz
wireguard-openbsd-77c5b70906a51eef2e015c3f2665fa3bed3844c8.zip
Disable EV_READ when sending IMSG_PARENT_AUTHENTICATE.
This is for consistency, code is not reached yet. ok gilles@
-rw-r--r--usr.sbin/smtpd/smtp_session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index 2eb9943f90b..4fe9993fc55 100644
--- a/usr.sbin/smtpd/smtp_session.c
+++ b/usr.sbin/smtpd/smtp_session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp_session.c,v 1.25 2008/12/07 15:38:35 jacekm Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.26 2008/12/07 15:41:16 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -174,6 +174,7 @@ session_rfc4954_auth_handler(struct session *s, char *args)
imsg_compose(s->s_env->sc_ibufs[PROC_PARENT], IMSG_PARENT_AUTHENTICATE,
0, 0, -1, &req, sizeof(req));
+ bufferevent_disable(s->s_bev, EV_READ);
return 1;
}