summaryrefslogtreecommitdiff
path: root/src/providers
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 /src/providers
parent06ba148a64e1e6ed0251332092a4b6a363ee4360 (diff)
downloadsssd-46967fe03a7472537baea13d01882e0ebe83d57a.tar.gz
sssd-46967fe03a7472537baea13d01882e0ebe83d57a.tar.bz2
sssd-46967fe03a7472537baea13d01882e0ebe83d57a.zip
krb5: fix warning may be used uninitialized
Diffstat (limited to 'src/providers')
-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 16ab4dbb..24a1fe1b 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;