journal-gatewayd: always log oom() in addition to returning error

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-01-18 01:15:54 -05:00
parent e429981ba4
commit 9775033d26
+3 -1
View File
@@ -110,7 +110,7 @@ static int open_journal(RequestMeta *m) {
}
static int respond_oom(struct MHD_Connection *connection) {
static int respond_oom_internal(struct MHD_Connection *connection) {
struct MHD_Response *response;
const char m[] = "Out of memory.\n";
int ret;
@@ -128,6 +128,8 @@ static int respond_oom(struct MHD_Connection *connection) {
return ret;
}
#define respond_oom(connection) log_oom(), respond_oom_internal(connection)
static int respond_error(
struct MHD_Connection *connection,
unsigned code,