Fix for "warning: unexpected connection from UID ..."
authorRichard Jones <rjones@redhat.com>
Thu, 8 Apr 2010 17:53:40 +0000 (18:53 +0100)
committerRichard Jones <rjones@redhat.com>
Thu, 8 Apr 2010 17:53:40 +0000 (18:53 +0100)
commitfb4ec82d97f71963ea7f830cb0bc38abefcbac99
tree57c590e5375f93794c61ff23894cc6262910ee33
parent50195d6ec4e893f894ef1bbf7af6eeda56f96600
Fix for "warning: unexpected connection from UID ..."

This warning is currently a fatal error.  The code attempts
to retry the accept call, but because we don't reset sock = -1
the retry doesn't happen and it dies anyway.

Set sock = -1 so the retry attempt can happen.
src/guestfs.c