From 75889713afc99ea52f4ff13b40672a12b28bdd41 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 23 Sep 2015 13:50:22 +0200 Subject: 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 --- src/providers/dp_dyndns.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/providers/dp_dyndns.c b/src/providers/dp_dyndns.c index 50b087446..a5eb383bd 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; } -- cgit