Am Mon, 4 Jun 2018 21:16:17 +0200
schrieb Ján Tomko <jto...@redhat.com>:

> On Mon, Jun 04, 2018 at 12:29:37PM +0200, Olaf Hering wrote:
> >-                goto error;
> This skips all errors, not just EADDRNOTAVAIL. Saving the errno here...

Why would any error matter here? Why was that one 'goto error;' ever correct?
There is more cake on the table, no need to stop here.

> >+    if (nsocks == 0) {
> Also, why the use of global errno variable to pass a value within a
> single block?

I have no idea, likely to have a common error available outside the loop.

Another cleanup for pretty error handling could be done.
If anyone really feels it is needed.


Olaf

Attachment: pgpyCl3_et9sl.pgp
Description: Digitale Signatur von OpenPGP

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to