openbsd-ports/mail/smtp-vilter/patches/patch-backend_vilter-attachment_vilter-attachment_c
2008-07-02 13:34:46 +00:00

21 lines
721 B
Plaintext

$OpenBSD: patch-backend_vilter-attachment_vilter-attachment_c,v 1.1 2008/07/02 13:34:46 mbalmer Exp $
--- backend/vilter-attachment/vilter-attachment.c.orig Wed Jul 2 15:31:58 2008
+++ backend/vilter-attachment/vilter-attachment.c Wed Jul 2 15:32:19 2008
@@ -510,7 +510,7 @@ vilter_scan(SMFICTX *ctx, char *fn, size_t fnlen, char
/* end of message */ ;
} else {
p = malloc(sizeof(struct part));
- if (p == NULL)
+ if (p == NULL) {
syslog(LOG_ERR, "attachment: memory allocation error, not all message parts will be written");
goto line;
}
@@ -524,6 +524,7 @@ vilter_scan(SMFICTX *ctx, char *fn, size_t fnlen, char
free(p);
p = NULL;
}
+ }
}
line:
++lines;