[dovecot-cvs] dovecot/src/auth passdb-pam.c,1.22,1.23

cras at dovecot.org cras at dovecot.org
Sun Mar 13 01:10:37 EET 2005


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv28892/auth

Modified Files:
	passdb-pam.c 
Log Message:
If we run out of memory, exit with FATAL_OUTOFMEM status instead of dumping
core. Also changed a few other i_panic() calls to others.



Index: passdb-pam.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-pam.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- passdb-pam.c	28 Feb 2005 22:19:21 -0000	1.22
+++ passdb-pam.c	12 Mar 2005 23:10:35 -0000	1.23
@@ -132,12 +132,12 @@
 		case PAM_PROMPT_ECHO_ON:
 			string = strdup(userpass->user);
 			if (string == NULL)
-				i_fatal("Out of memory");
+				i_fatal_status(FATAL_OUTOFMEM, "Out of memory");
 			break;
 		case PAM_PROMPT_ECHO_OFF:
 			string = strdup(userpass->pass);
 			if (string == NULL)
-				i_fatal("Out of memory");
+				i_fatal_status(FATAL_OUTOFMEM, "Out of memory");
 			break;
 		case PAM_ERROR_MSG:
 		case PAM_TEXT_INFO:



More information about the dovecot-cvs mailing list