You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@hyperreal.org on 1999/10/12 01:05:17 UTC
cvs commit: apache-1.3/src/main http_config.c
martin 99/10/11 16:05:16
Modified: src/main http_config.c
Log:
When we run out of memory, there's *no way* to continue successfully. Exit.
Revision Changes Path
1.148 +1 -0 apache-1.3/src/main/http_config.c
Index: http_config.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/main/http_config.c,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -r1.147 -r1.148
--- http_config.c 1999/08/27 23:38:10 1.147
+++ http_config.c 1999/10/11 23:05:15 1.148
@@ -698,6 +698,7 @@
sizeof(module *)*(total_modules+DYNAMIC_MODULE_LIMIT+1));
if (ap_loaded_modules == NULL) {
fprintf(stderr, "Ouch! Out of memory in ap_setup_prelinked_modules()!\n");
+ exit(1);
}
for (m = ap_preloaded_modules, m2 = ap_loaded_modules; *m != NULL; )
*m2++ = *m++;