r19753: verify result of received request before sending the next one.
authorRafal Szczesniak <mimir@samba.org>
Thu, 16 Nov 2006 23:40:35 +0000 (23:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:28:19 +0000 (14:28 -0500)
I don't know why I forgot this...

rafal
(This used to be commit d5f7141a6c76d80d564500d59fd07cc8edb8127d)

source4/libnet/libnet_user.c

index 2086b7673d1857dde314796f6861cbbdfb792a5f..a52bc6527cd27d11de8a8c1570d70fb6fc05825d 100644 (file)
@@ -986,6 +986,7 @@ static void continue_domain_open_userlist(struct composite_context *ctx)
 
        /* receive lsa domain handle */
        c->status = libnet_DomainOpen_recv(ctx, s->ctx, c, &s->domain_open);
+       if (!composite_is_ok(c)) return;
 
        /* prepare arguments */
        s->user_list.in.handle = &s->ctx->lsa.handle;