summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.h
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2011-03-26 11:00:00 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2011-03-26 11:00:00 +0000
commit4db89ed3cec2d63b23c424662cc58039b2554196 (patch)
tree882a1890b32958a2ff02071fe30cfd420461b303 /usr.sbin/smtpd/smtpd.h
parent05f52a3324581237ca2cae342c90111b1b8bc541 (diff)
have the client API receive a stdio stream rather than a fd to the message
fd. this shifts responsibility for the fclose to the caller, prevents a memory leak and makes everyone happy. diff by Jared Yanovich, thanks !
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r--usr.sbin/smtpd/smtpd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h
index 270a31ba01a..66458a24865 100644
--- a/usr.sbin/smtpd/smtpd.h
+++ b/usr.sbin/smtpd/smtpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.h,v 1.203 2011/03/26 10:54:22 eric Exp $ */
+/* $OpenBSD: smtpd.h,v 1.204 2011/03/26 10:59:59 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -852,7 +852,7 @@ struct mta_session {
objid_t secmapid;
char *secret;
int fd;
- int datafd;
+ FILE *datafp;
struct event ev;
char *cert;
void *pcb;