summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-09-23 13:50:22 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-09-23 15:32:01 +0200
commit75889713afc99ea52f4ff13b40672a12b28bdd41 (patch)
treee1acaac5b18a14055b739904a97423d98dda2e34 /src
parenteeac17ebbe38f16deaa8599231cccfc97aaac85c (diff)
downloadsssd-75889713afc99ea52f4ff13b40672a12b28bdd41.tar.gz
sssd-75889713afc99ea52f4ff13b40672a12b28bdd41.tar.xz
sssd-75889713afc99ea52f4ff13b40672a12b28bdd41.zip
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 <preichl@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/providers/dp_dyndns.c1
1 files changed, 1 insertions, 0 deletions
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;
}