anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0064-bus-proxyd-avoid-logging-oom-twice.patch

803fb7
From 61dd027666b40102bc9463217264f1deaab4cc8a Mon Sep 17 00:00:00 2001
803fb7
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
803fb7
Date: Tue, 3 Mar 2015 00:05:14 -0500
803fb7
Subject: [PATCH] bus-proxyd: avoid logging oom twice
803fb7
803fb7
(cherry picked from commit c29005212dc38d98c707639d1a82ffa5270f2e97)
803fb7
---
803fb7
 src/bus-proxyd/bus-proxyd.c | 2 +-
803fb7
 1 file changed, 1 insertion(+), 1 deletion(-)
803fb7
803fb7
diff --git a/src/bus-proxyd/bus-proxyd.c b/src/bus-proxyd/bus-proxyd.c
803fb7
index b6b005636..b6550ed3c 100644
803fb7
--- a/src/bus-proxyd/bus-proxyd.c
803fb7
+++ b/src/bus-proxyd/bus-proxyd.c
803fb7
@@ -82,7 +82,7 @@ static int client_context_new(ClientContext **out) {
803fb7
 
803fb7
         c = new0(ClientContext, 1);
803fb7
         if (!c)
803fb7
-                return log_oom();
803fb7
+                return -ENOMEM;
803fb7
 
803fb7
         c->fd = -1;
803fb7