[Pkg-wmaker-commits] [wmbiff] 01/06: error check just in case sighup patch is applied

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:00:00 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to tag wmbiff_0_3_3
in repository wmbiff.

commit 5779e437371880bdb6b0cf4e3e5320bcbcf1ffea
Author: bluehal <bluehal>
Date:   Tue Oct 23 21:14:28 2001 +0000

    error check just in case sighup patch is applied
---
 wmbiff/Imap4Client.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/wmbiff/Imap4Client.c b/wmbiff/Imap4Client.c
index 2d93ec5..026f4b9 100644
--- a/wmbiff/Imap4Client.c
+++ b/wmbiff/Imap4Client.c
@@ -79,6 +79,10 @@ static void bind_state_to_pcu(Pop3 pc,
 	asprintf(&connection_id, "%s|%s|%s|%d", PCU.userName,
 			 PCU.password, PCU.serverName, PCU.serverPort);
 	for (i = 0; i < FDMAP_SIZE && fdmap[i].cs != NULL; i++);
+	if(i==FDMAP_SIZE) {
+		printf("wmbiff: Tried to open too many IMAP connections. Sorry!\n");
+		exit(EXIT_FAILURE);
+	}
 	fdmap[i].user_password_server_port = connection_id;
 	fdmap[i].cs = scs;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git



More information about the Pkg-wmaker-commits mailing list