[dovecot-cvs] dovecot/src/plugins/quota quota-dict.c, 1.9.2.4, 1.9.2.5

cras at dovecot.org cras at dovecot.org
Thu Aug 10 23:08:28 EEST 2006


Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv27979

Modified Files:
      Tag: branch_1_0
	quota-dict.c 
Log Message:
If dict_init() fails, die with a i_fatal() message instead of crashing.



Index: quota-dict.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-dict.c,v
retrieving revision 1.9.2.4
retrieving revision 1.9.2.5
diff -u -d -r1.9.2.4 -r1.9.2.5
--- quota-dict.c	17 Jun 2006 12:21:20 -0000	1.9.2.4
+++ quota-dict.c	10 Aug 2006 20:08:26 -0000	1.9.2.5
@@ -31,9 +31,8 @@
 
 	uri = strchr(setup->data, ' ');
 	if (uri == NULL) {
-		i_error("dict quota: URI missing from parameters: %s",
+		i_fatal("dict quota: URI missing from parameters: %s",
 			setup->data);
-		return NULL;
 	}
 
 	t_push();
@@ -55,7 +54,7 @@
 
 	dict = dict_init(uri, getenv("USER"));
 	if (dict == NULL)
-		return NULL;
+		i_fatal("dict quota: dict_init() failed");
 
 	root = i_new(struct dict_quota_root, 1);
 	root->root.name = i_strdup(name);



More information about the dovecot-cvs mailing list