summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-10-10 11:25:28 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-10-10 19:58:29 +0200
commit46967fe03a7472537baea13d01882e0ebe83d57a (patch)
treefd0e4844ab314c5e0e5012c2ff0c2ba990d4cb94
parent06ba148a64e1e6ed0251332092a4b6a363ee4360 (diff)
downloadsssd-46967fe03a7472537baea13d01882e0ebe83d57a.zip
sssd-46967fe03a7472537baea13d01882e0ebe83d57a.tar.gz
sssd-46967fe03a7472537baea13d01882e0ebe83d57a.tar.bz2
krb5: fix warning may be used uninitialized
-rw-r--r--src/providers/krb5/krb5_child.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
index 16ab4db..24a1fe1 100644
--- a/src/providers/krb5/krb5_child.c
+++ b/src/providers/krb5/krb5_child.c
@@ -1675,6 +1675,7 @@ static errno_t k5c_recv_data(struct krb5_req *kr, int fd, uint32_t *offline)
len = sss_atomic_read_s(fd, buf, IN_BUF_SIZE);
if (len == -1) {
ret = errno;
+ ret = (ret == 0) ? EINVAL: ret;
DEBUG(SSSDBG_CRIT_FAILURE,
("read failed [%d][%s].\n", ret, strerror(ret)));
return ret;