[dovecot-cvs] dovecot-lda/src smtpclient.c,1.2,1.3
cras at dovecot.org
cras at dovecot.org
Fri Jan 13 17:15:54 EET 2006
Update of /var/lib/cvs/dovecot-lda/src
In directory talvi:/tmp/cvs-serv10823
Modified Files:
smtpclient.c
Log Message:
Check pipe()'s return value
Index: smtpclient.c
===================================================================
RCS file: /var/lib/cvs/dovecot-lda/src/smtpclient.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- smtpclient.c 10 Apr 2005 16:06:24 -0000 1.2
+++ smtpclient.c 13 Jan 2006 15:15:52 -0000 1.3
@@ -59,7 +59,9 @@
FILE *ret;
pid_t p;
- pipe(fds);
+ if (pipe(fds) < 0)
+ i_fatal("pipe() failed: %m");
+
if ((p = fork()) == 0) {
/* i'm the child! run sendmail! */
close(fds[1]);
More information about the dovecot-cvs
mailing list