naccyde / rpms / systemd

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