diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-11-28 18:00:09 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-01-18 01:15:54 -0500 |
commit | 9775033d260f62869d29654a27113b809a03dad9 (patch) | |
tree | b90ab35aca9cbe94907b9141efda6e95b5426ea1 /src | |
parent | e429981ba45894fe51d93956278badb61311bb99 (diff) |
journal-gatewayd: always log oom() in addition to returning error
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/journal-gatewayd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/journal/journal-gatewayd.c b/src/journal/journal-gatewayd.c index bb9bd44c7a..613b5394a8 100644 --- a/src/journal/journal-gatewayd.c +++ b/src/journal/journal-gatewayd.c @@ -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, |