PR: 30877
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@826822
13f79535-47bb-0310-9956-
ffa450edef68
mod_proxy_ftp: NULL pointer dereference on error paths.
[Stefan Fritsch <sf fritsch.de>, Joe Orton]
+ *) htpasswd: Improve out of disk space handling. PR 30877. [Stefan Fritsch]
+
*) htpasswd: Use MD5 hash by default on all platforms. [Stefan Fritsch]
*) mod_sed: Reduce memory consumption when processing very long lines.
static void putline(apr_file_t *f, const char *l)
{
- apr_file_puts(l, f);
+ apr_status_t rc;
+ rc = apr_file_puts(l, f);
+ if (rc != APR_SUCCESS) {
+ char errstr[MAX_STRING_LEN];
+ apr_strerror(rc, errstr, MAX_STRING_LEN);
+ apr_file_printf(errfile, "Error writing temp file: %s" NL, errstr);
+ apr_file_close(f);
+ exit(ERR_FILEPERM);
+ }
}
/*