summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2007-08-26 21:47:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:02:40 -0500
commit9a02cc10e18edf531d3473ff24dde5c39ad819e0 (patch)
tree39c5015ce59b7b60aa0113a8ae5c04107fa0ccd9
parente104b1fedfb59c88ef2fb87a96d9e2e206a6003d (diff)
downloadsamba-9a02cc10e18edf531d3473ff24dde5c39ad819e0.tar.gz
samba-9a02cc10e18edf531d3473ff24dde5c39ad819e0.tar.xz
samba-9a02cc10e18edf531d3473ff24dde5c39ad819e0.zip
r24680: fix a couple of stupid typos from previous commit.
rafal (This used to be commit b21b322e4ce593dafb5331dc4d65fa2d69b61cb8)
-rw-r--r--source4/libnet/libnet_group.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/libnet/libnet_group.c b/source4/libnet/libnet_group.c
index 6b5c1191f9f..1a54ec35bc8 100644
--- a/source4/libnet/libnet_group.c
+++ b/source4/libnet/libnet_group.c
@@ -39,7 +39,7 @@ struct group_info_state {
static void continue_domain_open_info(struct composite_context *ctx);
static void continue_name_found(struct composite_context *ctx);
-static void composite_group_info(struct composite_context *ctx);
+static void continue_group_info(struct composite_context *ctx);
struct composite_context* libnet_GroupInfo_send(struct libnet_context *ctx,
@@ -76,7 +76,7 @@ struct composite_context* libnet_GroupInfo_send(struct libnet_context *ctx,
s->lookup.in.domain_name = s->domain_name;
lookup_req = libnet_LookupName_send(s->ctx, c, &s->lookup, s->monitor_fn);
- if (!composite_nomem(s, c)) return c;
+ if (composite_nomem(lookup_req, c)) return c;
composite_continue(c, lookup_req, continue_name_found, c);
return c;
@@ -99,7 +99,7 @@ static void continue_domain_open_info(struct composite_context *ctx)
s->lookup.in.domain_name = s->domain_name;
lookup_req = libnet_LookupName_send(s->ctx, c, &s->lookup, s->monitor_fn);
- if (!composite_nomem(s, c)) return;
+ if (composite_nomem(lookup_req, c)) return;
composite_continue(c, lookup_req, continue_name_found, c);
}
@@ -117,7 +117,7 @@ static void continue_name_found(struct composite_context *ctx)
c->status = libnet_LookupName_recv(ctx, c, &s->lookup);
if (!composite_is_ok(c)) return;
- if (s->lookup.out.sid_type != SID_NAME_DOM_GRP ||
+ if (s->lookup.out.sid_type != SID_NAME_DOM_GRP &&
s->lookup.out.sid_type != SID_NAME_ALIAS) {
composite_error(c, NT_STATUS_NO_SUCH_GROUP);
}
@@ -130,11 +130,11 @@ static void continue_name_found(struct composite_context *ctx)
info_req = libnet_rpc_groupinfo_send(s->ctx->samr.pipe, &s->info, s->monitor_fn);
if (composite_nomem(info_req, c)) return;
- composite_continue(c, info_req, composite_group_info, c);
+ composite_continue(c, info_req, continue_group_info, c);
}
-static void composite_group_info(struct composite_context *ctx)
+static void continue_group_info(struct composite_context *ctx)
{
struct composite_context *c;
struct group_info_state *s;