aboutsummaryrefslogtreecommitdiff
path: root/contrib/sendmail/libmilter/handler.c
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2001-01-21 22:17:06 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2001-01-21 22:17:06 +0000
commit193538b7dabbb9c165660ca97d2704eea0642fa1 (patch)
tree4f725bdbff499cf7343d2eaeec15f8a0f0926140 /contrib/sendmail/libmilter/handler.c
parent42e5d1658931f6141a962c4b87919e7a1613ec8e (diff)
downloadsrc-193538b7dabbb9c165660ca97d2704eea0642fa1.tar.gz
src-193538b7dabbb9c165660ca97d2704eea0642fa1.zip
Import sendmail 8.11.2
Notes
Notes: svn path=/vendor/sendmail/dist/; revision=71345
Diffstat (limited to 'contrib/sendmail/libmilter/handler.c')
-rw-r--r--contrib/sendmail/libmilter/handler.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/sendmail/libmilter/handler.c b/contrib/sendmail/libmilter/handler.c
index f6e75e96c610..2ee5203feea7 100644
--- a/contrib/sendmail/libmilter/handler.c
+++ b/contrib/sendmail/libmilter/handler.c
@@ -9,7 +9,7 @@
*/
#ifndef lint
-static char id[] = "@(#)$Id: handler.c,v 8.19.4.2 2000/07/14 06:16:57 msk Exp $";
+static char id[] = "@(#)$Id: handler.c,v 8.19.4.3 2000/12/29 19:45:39 gshapiro Exp $";
#endif /* ! lint */
#if _FFR_MILTER
@@ -44,9 +44,15 @@ mi_handle_session(ctx)
return MI_FAILURE;
ret = mi_engine(ctx);
if (ValidSocket(ctx->ctx_sd))
+ {
(void) close(ctx->ctx_sd);
+ ctx->ctx_sd = INVALID_SOCKET;
+ }
if (ctx->ctx_reply != NULL)
+ {
free(ctx->ctx_reply);
+ ctx->ctx_reply = NULL;
+ }
if (ctx->ctx_privdata != NULL)
{
smi_log(SMI_LOG_WARN,