From 46967fe03a7472537baea13d01882e0ebe83d57a Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Thu, 10 Oct 2013 11:25:28 +0200 Subject: krb5: fix warning may be used uninitialized --- src/providers/krb5/krb5_child.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit