From 02e61ddc6986c6ada9c702bf2dd4ef42d20425c1 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 23 Sep 2015 13:50:22 +0200 Subject: [PATCH 91/96] DYNDNS: Return right error code in case of failure The variable will be zero if getifaddrs succeeds and therefore wrong error code will be returned in case of insufficient memory (talloc_zero failed) Reviewed-by: Pavel Reichl (cherry picked from commit 75889713afc99ea52f4ff13b40672a12b28bdd41) --- src/providers/dp_dyndns.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/providers/dp_dyndns.c b/src/providers/dp_dyndns.c index 50b087446f9437466de355e4d72b39a69512da03..a5eb383bd4f6c08b846a69f0588b9c25647dc5c8 100644 --- a/src/providers/dp_dyndns.c +++ b/src/providers/dp_dyndns.c @@ -228,6 +228,7 @@ sss_iface_addr_list_get(TALLOC_CTX *mem_ctx, const char *ifname, /* Add this address to the IP address list */ address = talloc_zero(mem_ctx, struct sss_iface_addr); if (!address) { + ret = ENOMEM; goto done; } -- 2.4.3