diff --git a/src/rm/RequestManagerHostAllocate.cc b/src/rm/RequestManagerHostAllocate.cc index 91fe3b8fd0..7d3393f4d0 100644 --- a/src/rm/RequestManagerHostAllocate.cc +++ b/src/rm/RequestManagerHostAllocate.cc @@ -62,7 +62,7 @@ void RequestManager::HostAllocate::execute( im_mad_name, vmm_mad_name, tm_mad_name); - if ( rc != 0 ) + if ( rc == -1 ) { goto error_host_allocate; } diff --git a/src/rm/RequestManagerUserAllocate.cc b/src/rm/RequestManagerUserAllocate.cc index 772a540017..63aa6d18af 100644 --- a/src/rm/RequestManagerUserAllocate.cc +++ b/src/rm/RequestManagerUserAllocate.cc @@ -67,7 +67,7 @@ void RequestManager::UserAllocate::execute( // Now let's add the user rc = UserAllocate::upool->allocate(&uid,username,password,true); - if ( rc != 0 ) + if ( rc == -1 ) { goto error_allocate; }