From bb3d983f5bc4b49619f26af44c3c540c3030155f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 23 Apr 2012 13:47:46 +1000 Subject: s4-libnet: Fix segfault shown by wbinfo --group-info=administrator The issue was that after the LookupNames call indicated that this was not a group, the call paths diverged, with both sucess and failure paths running. Andrew Bartlett --- source4/libnet/libnet_group.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/libnet') diff --git a/source4/libnet/libnet_group.c b/source4/libnet/libnet_group.c index 5d8f9e200a..b12037e1f3 100644 --- a/source4/libnet/libnet_group.c +++ b/source4/libnet/libnet_group.c @@ -337,6 +337,7 @@ static void continue_name_found(struct composite_context *ctx) 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); + return; } /* prepare arguments for groupinfo call */ -- cgit