[SSSD] [PATCH] Cleanups

Simo Sorce ssorce at redhat.com
Sat Nov 7 18:22:44 UTC 2009


On Sat, 2009-11-07 at 09:47 +0100, Martin Nagy wrote:
> Simo Sorce wrote:
> >      if (tevent_req_is_error(req, &tstate, &err)) {
> > -        return -1;
> > +        if (err) return err;
> > +        return EIO;
> >      }
> 
> Nack, err is not initialized here. I would recommend initializing it to
> EIO and replace return -1 with return err.

Right,
attached patch that fixes this.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Check-return-zero-free-hostent-adhere-to-style.patch
Type: text/x-patch
Size: 5622 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20091107/068bfdf7/attachment.bin>


More information about the sssd-devel mailing list