Revision 0659115f src/rm/RequestManagerImageAllocate.cc

View differences:

src/rm/RequestManagerImageAllocate.cc
51 51

  
52 52

  
53 53
    // First, we need to authenticate the user
54
    rc = ImageAllocate::upool->authenticate(session);
54
    uid = ImageAllocate::upool->authenticate(session);
55 55

  
56
    if ( rc == -1 )
56
    if ( uid == -1 )
57 57
    {
58 58
        goto error_authenticate;
59 59
    }
60 60
    
61
    uid = rc;
62
    
63 61
    rc = ImageAllocate::ipool->allocate(uid,image_template,&iid);
64 62

  
65 63
    if ( rc < 0 )

Also available in: Unified diff