diff options
author | Stefan Fritsch <sf@apache.org> | 2012-12-25 22:16:17 +0100 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2012-12-25 22:16:17 +0100 |
commit | 93d536555aafa741ea22edae473cfb1df7085b01 (patch) | |
tree | 1d6437289f173753d0124970185d7e7b3eb0e4dd /support/htpasswd.c | |
parent | Exit with error message if out of mem (diff) | |
download | apache2-93d536555aafa741ea22edae473cfb1df7085b01.tar.xz apache2-93d536555aafa741ea22edae473cfb1df7085b01.zip |
htdbm, htpasswd: print error message if out of memory
PR: 54345
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425775 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/htpasswd.c')
-rw-r--r-- | support/htpasswd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/support/htpasswd.c b/support/htpasswd.c index 51219c0d96..0989fd81b3 100644 --- a/support/htpasswd.c +++ b/support/htpasswd.c @@ -274,6 +274,7 @@ int main(int argc, const char * const argv[]) apr_app_initialize(&argc, &argv, NULL); atexit(terminate); apr_pool_create(&pool, NULL); + apr_pool_abort_set(abort_on_oom, pool); apr_file_open_stderr(&errfile, pool); ctx.pool = pool; ctx.alg = ALG_APMD5; |