From cede23a29ded52c2ea265fad8d7069d56bf7e87c Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 2 Jun 2010 11:45:18 +0200 Subject: Don't return uninitialized value in proxy provider Fixes: #498 --- src/providers/proxy/proxy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/providers/proxy') 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; } -- cgit