Fix missing error dispatch in virDomainLxcEnterNamespace

The virDomainLxcEnterNamespace method mistakenly uses
virCheckFlags, which returns immediately instead of
virCheckFlagsGoto which jumps to the error cleanup
patch where there is a virDispatchError call
This commit is contained in:
Daniel P. Berrange 2013-03-12 17:36:19 +00:00
parent a08810195c
commit b5d014c375

View File

@ -138,7 +138,7 @@ virDomainLxcEnterNamespace(virDomainPtr domain,
{
int i;
virCheckFlags(0, -1);
virCheckFlagsGoto(0, error);
if (noldfdlist && oldfdlist) {
size_t nfds;