summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-06-02 11:45:18 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-06-06 13:38:19 -0400
commitcede23a29ded52c2ea265fad8d7069d56bf7e87c (patch)
tree53dcac3a26d998a0e7bd3013ccc68aa0b5b9f98d
parent242fc5b1eee793e3c2ced43eb845429f1a4599a0 (diff)
downloadsssd-cede23a29ded52c2ea265fad8d7069d56bf7e87c.tar.gz
sssd-cede23a29ded52c2ea265fad8d7069d56bf7e87c.tar.bz2
sssd-cede23a29ded52c2ea265fad8d7069d56bf7e87c.zip
Don't return uninitialized value in proxy provider
Fixes: #498
-rw-r--r--src/providers/proxy/proxy.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/providers/proxy/proxy.c b/src/providers/proxy/proxy.c
index 9a8dc4a2..f6e7d7bb 100644
--- a/src/providers/proxy/proxy.c
+++ b/src/providers/proxy/proxy.c
@@ -1280,6 +1280,7 @@ again:
break;
default:
+ ret = EIO;
DEBUG(2, ("proxy -> getpwent_r failed (%d)[%s]\n",
ret, strerror(ret)));
break;
@@ -1434,6 +1435,7 @@ again:
goto done;
default:
+ ret = EIO;
goto done;
}
@@ -1741,6 +1743,7 @@ again:
break;
default:
+ ret = EIO;
DEBUG(2, ("proxy -> getgrent_r failed (%d)[%s]\n",
ret, strerror(ret)));
break;
@@ -1929,9 +1932,9 @@ again:
break;
default:
+ ret = EIO;
DEBUG(2, ("proxy -> initgroups_dyn failed (%d)[%s]\n",
ret, strerror(ret)));
- ret = EIO;
break;
}